Re: Looping a variable name with [index]

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24111
interpreted = N
texte = Mike-You need to enclose the variable in an [interpret] context like this:[loop start=1&end=11][showif [interpret][q[index]][/interpret]!]> Hey all, > Can't figure out why this doesn't work... > I've got a form with field names q1 through q11. On the following page I > want to verify whether one or more of the fields have been filled in with > this code: > > [math show=f]didQ=0[/math] > [loop start=1&end=11][showif [q[index]]!][math > show=f]didQ=didQ+1[/math][/showif][/loop] > -will [tigernet technologies, inc.] L_______[www.tigernet.net] L________e-commerce specialists Associated Messages, from the most recent to the oldest:

    
  1. Re: Looping a variable name with [index] (Will Starck 1999)
  2. Looping a variable name with [index] (Mike_Davis 1999)
Mike-You need to enclose the variable in an [interpret] context like this:[loop start=1&end=11][showif [interpret][q[index]][/interpret]!]> Hey all, > Can't figure out why this doesn't work... > I've got a form with field names q1 through q11. On the following page I > want to verify whether one or more of the fields have been filled in with > this code: > > [math show=f]didQ=0[/math] > [loop start=1&end=11][showif [q[index]]!][math > show=f]didQ=didQ+1[/math][/showif][/loop] > -will [tigernet technologies, inc.] L_______[www.tigernet.net] L________e-commerce specialists Will Starck

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

European Dates (1998) date tag not interpreted (2000) Stopping bad HTML propagation ? (1997) RE: [WebDNA] Installing 6.0 onto Server 2008 (2011) [WebDNA] Fails to recognize comma-separated db (2010) # fields limited? (1997) RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997) Help with Shipping Costs (1997) surveys with WebCatalog (2000) Shipping calculations (1997) Re:Problem displaying search result (1997) Can't Update records (1997) hideif [x]=1,2,3.. (2003) WebCat2 Append problem (B14Macacgi) (1997) Error.html (1997) A few questions. . . (1997) ColdFusion v. WebDNA (2004) Search (1997) WebCat2 several catalogs? (1997) Triggers (2001)