Re: carrying a global variable from stack to sub stack

2011-08-02 Thread Bob Sneidar
heh heh nice. :-) Bob On Aug 1, 2011, at 6:00 PM, Mark Wieder wrote: > Bob- > > Monday, August 1, 2011, 9:39:37 AM, you wrote: > >> Hi Admin. (Did your parents really name you "Admin"??) ;-) > > http://xkcd.com/327/ > > -- > -Mark Wieder > mwie...@ahsoftware.net > > > ___

Re: carrying a global variable from stack to sub stack

2011-08-01 Thread Admin
No, that's just my main email address all my other email addresses forward to. It's a long story. Mike On Mon, 1 Aug 2011 18:00:23 -0700, Mark Wieder wrote: > Bob- > > Monday, August 1, 2011, 9:39:37 AM, you wrote: > >> Hi Admin. (Did your parents really name you "Admin"??) ;-) > > htt

Re: carrying a global variable from stack to sub stack

2011-08-01 Thread Mark Wieder
Bob- Monday, August 1, 2011, 9:39:37 AM, you wrote: > Hi Admin. (Did your parents really name you "Admin"??) ;-) http://xkcd.com/327/ -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit t

Re: carrying a global variable from stack to sub stack

2011-08-01 Thread Bob Sneidar
Hi Admin. (Did your parents really name you "Admin"??) ;-) You can also put the global declaration at the top of the stack and substack script: global bobTest on openCard put "This is a test" into bobTest end openCard If your global is going to be used in a lot of places, this is a better w

RE: carrying a global variable from stack to sub stack

2011-07-30 Thread Admin
Thank you. The only place I did not have it was in my stack's script with the openstack handler. Duh! Mike On Sat, 30 Jul 2011 17:34:58 -0400, Slava Paperno wrote: >> How do you carry a global variable from one stack to a substack? > > If you set a global variable in the main stack:

RE: carrying a global variable from stack to sub stack

2011-07-30 Thread Slava Paperno
> How do you carry a global variable from one stack to a substack? If you set a global variable in the main stack: on preOpenStack global gMyName put "Mike" into gMyName end preOpenStack then in any card in any substack you can retrieve the value like so: on openCard global gMyName a

Re: carrying a global variable from stack to sub stack

2011-07-30 Thread Admin
Hello all, How do you carry a global variable from one stack to a substack? I have this set of commands on every page of every stack in my project: on opencard --Create a global variable for the db global dbID global curUserID global UN put numtochar(39) into SQ I then proceed to l