Re: [WebDNA] [text scope=global show=F]... the 'show' param breaks
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105124
interpreted = N
texte = Govinda wrote:> Just a heads up to anyone setting global-scope [text] vars (at least > when in a function which is called from another parent function..)> > those [text]-var statements do not seem to work when set this way:> [text scope=global show=F]...> > ..but do work when set this way:> [text scope=global]> > I would not think that the 'show' param should cause the 'scope' param > to break.. seems like a (minor) bug to me.> Anyway.. this post is just to save someone else the 15 mins trying to > figure out what is going on... in case you ever end up in this > situation like I did today.Couple issues here that I see (and no, I don't see a bug as of yet)..You need to use the "&" between params, and,I am guessing you are wanting WebDNA's function contextto behave more like other languages function contexts.. whichthere are some differences.I would suggest posting the code so we can actually seewhat you are doing... but this doesn't break:--------[function name=test1][text scope=global&show=F]a=1[/text][:global:a][/function]Results:
[text show=T]a=20[/text]
[test1]--------Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com
Associated Messages, from the most recent to the oldest:
Govinda wrote:> Just a heads up to anyone setting global-scope
[text] vars (at least > when in a function which is called from another parent function..)> > those
[text]-var statements do not seem to work when set this way:> [text scope=global show=F]...> > ..but do work when set this way:> [text scope=global]> > I would not think that the 'show' param should cause the 'scope' param > to break.. seems like a (minor) bug to me.> Anyway.. this post is just to save someone else the 15 mins trying to > figure out what is going on... in case you ever end up in this > situation like I did today.Couple issues here that I see (and no, I don't see a bug as of yet)..You need to use the "&" between params, and,I am guessing you are wanting WebDNA's function contextto behave more like other languages function contexts.. whichthere are some differences.I would suggest posting the code so we can actually seewhat you are doing... but this doesn't break:--------[function name=test1][text scope=global&show=F]a=1[/text][:global:a][/function]Results:
[text show=T]a=20[/text]
[test1]--------Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com
Donovan Brooke
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:
$Quit, $CloseDatabase corrections (1997)
Which is Faster (1998)
Problems w/ heavy use of cart header fields? (1998)
Most Recent version of WebDNA For RH ES (2006)
Emailer [cart] file names (1997)
Setting up shop (1997)
test (2006)
international time (1997)
NetSplat and WebCat2 (1997)
converting characters in form (1997)
[OT] Multi - Language (2007)
Wow .. (2003)
LOOP and IF statements (1997)
SSL/Document Contains NO Data (1998)
RE: Remote administration (1998)
Just a thought (1998)
Share cost of training videos! (1998)
Read and Write (2001)
MOOOOOO (2000)
Giving out error pages (1997)