About variable.

Marty Billingsley marty at vertex.ucls.uchicago.edu
Thu Mar 31 16:25:30 EST 2005


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


More information about the use-livecode mailing list