ListVariables Problem
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50387
interpreted = N
texte = 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=red2:var3=yellow3:var5=blue4:var7=var75:yellow=var36:violet=var77:violet=var7------------------------------------------------------------------------1:var4=green2:var1=red3:var3=yellow4:var2=orange5:var5=blue6:var6=indigo7: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/
Associated Messages, from the most recent to the oldest:
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=red2:var3=yellow3:var5=blue4:var7=var75:yellow=var36:violet=var77:violet=var7------------------------------------------------------------------------1:var4=green2:var1=red3:var3=yellow4:var2=orange5:var5=blue6:var6=indigo7: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/
P
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:
can WC render sites out? (1997)
international time (1997)
Sku numbers (1997)
HELP (2000)
WebCat2b13MacPlugIn - [include] (1997)
PIXO (1997)
WebCat2 several catalogs? (1997)
insert graphic in email (2000)
Closest non matching search (2004)
WebCatalog (1999)
RE: Emailer Set Up (1997)
cannot delete last admin (1999)
how realize an advertiser ? (2005)
OT - SMSI complaint (2001)
[ShowCart] and GET vs. POST (1997)
quick GREP question (2001)
Encrypted items in DB (2001)
Extra equals signs with IE? (More debugging questions...) (1997)
Banner Ad example (Typhoon) and WebCatalog (1997)
[ShowNext] (1997)