Re: ListVariables Problem

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50392
interpreted = N
texte = on 5/15/2003 5:12 am, P at p@edell.co.uk so noted...> 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. Why are you reassigning the values of the text variables within [listvariables] (not once, but twice) with [text][name]=[value][/text]?That's going to shuffle the creation order of the variables, and like doing a [removelineitem] within a [lineitems] loop, is just asking for trouble.Also, if you have any [math] variables on the page, you're going to wind up with two variables (one math and one text) with the same name! > [ListVariables][text][name]=[value][/text][index]:[name]=[value]
[/ > ListVariables] > >
> > [ListVariables][text][name]=[value][/text][/ListVariables] > > [ListVariables][index]:[name]=[value]
[/ListVariables] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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)
on 5/15/2003 5:12 am, P at p@edell.co.uk so noted...> 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. Why are you reassigning the values of the text variables within [listvariables] (not once, but twice) with [text][name]=[value][/text]?That's going to shuffle the creation order of the variables, and like doing a [removelineitem] within a [lineitems] loop, is just asking for trouble.Also, if you have any [math] variables on the page, you're going to wind up with two variables (one math and one text) with the same name! > [listvariables][text][name]=[value][/text][index]:[name]=[value]
[/ > ListVariables] > >
> > [listvariables][text][name]=[value][/text][/ListVariables] > > [listvariables][index]:[name]=[value]
[/ListVariables] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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/ Rob Marquardt

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:

method of payment (1997) :Programmer: Looking for work (2002) Faxing orders in place of email (1997) Mondo amounts of Mail [long] (1999) # of real domains on 1 web server (1997) [WebDNA] Anyone using WebDNA with Twitter Streaming API? (2009) Email Formatting (1998) File Upload (1997) Location of Browser Info.txt file (1997) Requiring that certain fields be completed (1997) Format of Required fields error message (1997) [OT] search engine Q (2001) Updating a database once per day - An example (1998) Hello??? (1997) WebSTAR/WebCat is serving .db files! (1999) 2.1b2 was SLOW ... but 2.1b3 is FAST! (1997) off topic - dna snipets (1997) Rotating Banners ... (was LinkExchange) (1997) WCS Newbie question (1997) Misc Stuff That Might Help (1997)