Reusable Code (again)

Ken Norris pixelbird at interisland.net
Tue Nov 30 06:25:40 EST 2004


Hi Gordon,

On Nov 30, 2004, at 2:25 AM, use-revolution-request at lists.runrev.com 
wrote:

> Date: Mon, 29 Nov 2004 20:39:49 -0800 (PST)
> From: Gordon <gwalias-rev at yahoo.com>
> Subject: Reusable Code (again)
>
> Sorry, I meant to ask for a variable example, not a
> constant. My question is this then ...
>
> How do I have my reusable stack introduce a global
> variable that can be passed around in an application
> that uses the stack? Can I declare a global variable
> in the stack script of the reusable stack and then use
> the 'start using' construct that was described
> earlier?
>
> Does this avoid having to declare the same global
> variable in the rest of my app?

I think you're making it too hard. Store it in custom props instead, 
call it via path from wherever you are.

Ken N.



More information about the use-livecode mailing list