Re: ListVariables Problem

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50388
interpreted = N
texte = Normal, you tests to initialize a variable which is already to initialize... If you do that it's ok: [ListVariables][text]_[name]=[value][/text][index]:[name]=[value]
[/ ListVariables]But I do not see well where you want to go???Le jeudi, 15 mai 2003, à 12:12 Europe/Paris, P a écrit :> Hi Everyone, > > I used listvariables to set/confirm [text] variables at the start of a > page. > > Then, as I was debugging, to view the variabless that were being > [text]ed I added [index]:[name]=[value]
into the context, and that > scrambled the results. > > I would like to understand why? > > I expected WebDNA to parse and replace the contents of the context > from left to right, and loop through each variable available to the > page. > > Adding [index]:[name]=[value]
into a separate [listvariables] > context produces expected results. > > This sample: > > > > [text]var1=red[/text] > [text]var2=orange[/text] > [text]var3=yellow[/text] > [text]var4=green[/text] > [text]var5=blue[/text] > [text]var6=indigo[/text] > [text]var7=violet[/text] > > [ListVariables][text][name]=[value][/text][index]:[name]=[value]
[/ > ListVariables] > >
> > [ListVariables][text][name]=[value][/text][/ListVariables] > > [ListVariables][index]:[name]=[value]
[/ListVariables] > > Produces: > > 1:var1=red > 2:var3=yellow > 3:var5=blue > 4:var7=var7 > 5:yellow=var3 > 6:violet=var7 > 7:violet=var7 > ----------------------------------------------------------------------- > - > 1:var4=green > 2:var1=red > 3:var3=yellow > 4:var2=orange > 5:var5=blue > 6:var6=indigo > 7:var7=violet > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: ListVariables Problem (Rob Marquardt 2003)
  2. Re: ListVariables Problem (P 2003)
  3. Re: ListVariables Problem (dbrooke 2003)
  4. Re: ListVariables Problem (dbrooke 2003)
  5. Re: ListVariables Problem (Alex McCombie 2003)
  6. Re: ListVariables Problem (Rob Marquardt 2003)
  7. Re: ListVariables Problem (Rob Marquardt 2003)
  8. Re: ListVariables Problem (John Peacock 2003)
  9. Re: ListVariables Problem (P 2003)
  10. Re: ListVariables Problem (Rob Marquardt 2003)
  11. Re: ListVariables Problem (Laurent Bache 2003)
  12. ListVariables Problem (P 2003)
Normal, you tests to initialize a variable which is already to initialize... If you do that it's ok: [listvariables][text]_[name]=[value][/text][index]:[name]=[value]
[/ ListVariables]But I do not see well where you want to go???Le jeudi, 15 mai 2003, à 12:12 Europe/Paris, P a écrit :> Hi Everyone, > > I used listvariables to set/confirm [text] variables at the start of a > page. > > Then, as I was debugging, to view the variabless that were being > [text]ed I added [index]:[name]=[value]
into the context, and that > scrambled the results. > > I would like to understand why? > > I expected WebDNA to parse and replace the contents of the context > from left to right, and loop through each variable available to the > page. > > Adding [index]:[name]=[value]
into a separate [listvariables] > context produces expected results. > > This sample: > > > > [text]var1=red[/text] > [text]var2=orange[/text] > [text]var3=yellow[/text] > [text]var4=green[/text] > [text]var5=blue[/text] > [text]var6=indigo[/text] > [text]var7=violet[/text] > > [listvariables][text][name]=[value][/text][index]:[name]=[value]
[/ > ListVariables] > >
> > [listvariables][text][name]=[value][/text][/ListVariables] > > [listvariables][index]:[name]=[value]
[/ListVariables] > > Produces: > > 1:var1=red > 2:var3=yellow > 3:var5=blue > 4:var7=var7 > 5:yellow=var3 > 6:violet=var7 > 7:violet=var7 > ----------------------------------------------------------------------- > - > 1:var4=green > 2:var1=red > 3:var3=yellow > 4:var2=orange > 5:var5=blue > 6:var6=indigo > 7:var7=violet > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Laurent Bache

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:

EIMS Problems (1997) Comments in db? (1997) Wanted: More Math Functions (or, Can You Solve This?) (1997) lookups (2000) More on the email templates (1997) Using Web* mail instead of Emailer? (1999) Emailer Problem (1998) Emailer Set Up (1997) PCS Customer submissions ? (1997) [OT] Security in general [Was] WebDNA security (2004) Download URL & access on the fly ? (1997) WebCatalog seems to choke on large (2meg) html files. (1998) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) select multiple 2 more cents (1997) OT: Microsoft to buy Macromedia? was: [Ignore] Test (2002) Where can I download to test? (2003) Order file numbers different than the cart number. why? (2000) problems with 2 tags (1997) displaying New products (using [date]) (1997) Searching Multiple DBs (1997)