style of addressing objects

Peter Haworth pete at mollysrevenge.com
Wed Feb 9 13:06:41 EST 2011


I always put quotes around any object names.

Personally, if an object is in a group, I always qualify it with the group name.  I was bitten a couple of times because I added a control at a later date of the same type and name as an existing one, so using the group name avoids potential future conflicts.


Pete Haworth

On Feb 9, 2011, at 2:12 AM, Tiemo Hollmann TB wrote:

> Hello,
> 
> lets say I have a field "f1", grouped in grp "g1" on card "c1".
> 
> 
> 
> I can address the field e.g.: put "foo" into fld f1
> 
> But I could also address: put "foo" into fld f1 of grp g1
> 
> Or: put "foo" into fld f1 of cd c1
> 
> Or: put "foo" into fld f1 of grp g1 of cd c1 of stack s1
> 
> And actually every object name with or without quotes
> 
> 
> 
> What is "the correct way" of addressing, or what is a good style or what
> shouldn't you do never.
> 
> What do the old revolutionaries say? Just curious to get more "standard
> compliant"
> 
> Thanks
> 
> Tiemo
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 





More information about the use-livecode mailing list