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 context to behave more like other languages function contexts.. which there are some differences. I would suggest posting the code so we can actually see what 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 Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-forum.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [text scope=global show=F]... the 'show' param breaks the 'scope' param (Govinda 2010)
  2. Re: [WebDNA] [text scope=global show=F]... the 'show' param breaks (Donovan Brooke 2010)
  3. [WebDNA] [text scope=global show=F]... the 'show' param breaks the 'scope' param (Govinda 2010)
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 context to behave more like other languages function contexts.. which there are some differences. I would suggest posting the code so we can actually see what 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 Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-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:

AppleScript error (2003) RE: Migrating to NT (1997) Donovans Theorem (2003) Enterprise Server (1998) Review comparison by PC Magazine: Open for On-line Business (1997) Improper naming convections? (2004) setting taxable to true (1997) Syntax of a URL for including ?cart=[cart] and #something? (1998) How can I record purchases to a database? (1998) SMSI BUG: RandSeed broken on 4.0.2 / Mac OS X (2002) Windows-based Code Editor (2002) [orderfile Orders/[cart]] (2000) en/decrypt problem (1999) Deleting Orders (1997) emailer on Windows Beta 18 (1997) uprading from 4.0.2 to 4.5 - any gotcha's? (2002) textarea question (1998) HomePage Caution (1997) Secure server question (1997) Who is doing sign-ups-got it (1998)