Re: Global variables are not always global ...
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32859
interpreted = N
texte = >[text show=t]ipaddress=4[/text]>>... displays 4, but everyone knows that 4 is not an ip address -->so what's going on here?This behavior is normal and consistent. See http://betadoc.smithmicro.com/Contexts.html for an explanation of contexts.All text variables whose value is set inside of a text context will return that value, just like math variables, orderfile variables, and all other context-sensitive variables.[text show=t]index=hello[/text] <-- returns hello[loop start=1&end=1] [index] <-- returns 1, because inside a [loop] context, the index value is provided by the loop itself[/loop][text]index[/text] <-- returned hello, because now we're back outside the loop contextTo be sure, most people don't tend to think of [text] as a context, because it's so 'small' and seems to have no 'interior', but rest assured it is a context just like bigger ones such as [OrderFile].Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>[text show=t]ipaddress=4[/text]>>... displays 4, but everyone knows that 4 is not an ip address -->so what's going on here?This behavior is normal and consistent. See http://betadoc.smithmicro.com/Contexts.html for an explanation of contexts.All text variables whose value is set inside of a text context will return that value, just like math variables, orderfile variables, and all other context-sensitive variables.[text show=t]index=hello[/text] <-- returns hello[loop start=1&end=1] [index] <-- returns 1, because inside a [loop] context, the index value is provided by the loop itself[/loop][text]index[/text] <-- returned hello, because now we're back outside the loop contextTo be sure, most people don't tend to think of [text] as a context, because it's so 'small' and seems to have no 'interior', but rest assured it is a context just like bigger ones such as [orderfile].Technical Support **********************************Smith Micro, Internet Solutions Div | eCommerce (WebCatalog)16855 West Bernardo Drive, #380 | -------------------------San Diego, CA 92127 | Software & Site DevelopmentWebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************-------------------------------------------------------------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://search.smithmicro.com/
WebDNA Support
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:
instant cookies? (1999)
Possible Bug in 2.0b15.acgi (1997)
Calendar using WebCatalog? (1997)
Web Merchant process after credit card clears (1998)
[WebDNA] Snow Leoopard and v7 (2011)
And/or Search (1998)
Problem (1997)
More on the email templates (1997)
WebTen Memory Error with Plug-In (1998)
WebCat2: Items xx to xx shown, etc. (1997)
WebCatalog [FoundItems] Problem - AGAIN - (1997)
Include a big block of text (1997)
6.0 upgrade issue? (2005)
Re:2nd WebCatalog2 Feature Request (1996)
search for all (1998)
How to append text after the sign & (1997)
Finding max value for a field (1997)
[cart] how is it generated (2002)
new cart IDs being assigned somehow (1997)
Sandbox DB permissions (2005)