I don't think one ever *has to* use a global. Custom properties will, as far as I can tell, always do the job just fine.

But:

(a) custom properties take a bit more work to set up (longer syntax and/or through the inspector)
(b) put "hello" into gVariableName is shorter and therefore less error-prone and more efficient than set the cPropName of this stack to "hello"


Other than that, I can't think of any reason not to use custom properties exclusively.

Custom properties have some nice attributes, too. They can store arbitrary data and their contents can be directly edited in the inspector. I use custom properties to store long text strings used in help dialogs and other such places so I can edit them easily in place.

On Mar 31, 2005, at 10:18 AM, 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?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Co-Chair
RevConWest '05
June 17-18, 2005, Monterey, California
http://www.altuit.com/webs/altuit/RevConWest

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to