About variable.

Frank D. Engel, Jr. fde101 at fjrhome.net
Thu Mar 31 16:32:54 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I generally use the stack for that sort of thing...

Saves me the trouble of creating an extra object, and it's readily 
visible from every control on card.

On Mar 31, 2005, at 4:25 PM, Marty Billingsley wrote:

> Frank D. Engel, Jr. wrote:
>
>> When would you have to use a global variable, in so far as something
>> cannot be accomplished with a custom property?
>
> When you don't want to create an object simply to hold a custom
> property.  For example, if I'm making a quiz to use with students,
> I keep their score in a global variable.  If I wanted to use a
> custom property I'd have to create an object just for that purpose.
> Seems counter-intuitive to me.
>
> Plus, as has been pointed out, it's sooooo easy just to say:
>   global gScore
>   add 1 to gScore
>
> Custom properties are a little more convoluted.
>
>   - marty
>
> --
> Marty Billingsley (marty at ucls.uchicago.edu)
> The University of Chicago Laboratory Schools
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCTGyJ7aqtWrR9cZoRAhyeAJwMsLdNjNGSeVTcV+d5Xu85h9zeEgCfQDeE
1HcykgJVoQWJQ2J8mCQjpdY=
=A9Z0
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list