A Got-Ya

Dr. Hawkins dochawk at gmail.com
Wed Jan 21 19:56:50 EST 2015


On Wed, Jan 21, 2015 at 4:00 PM, Peter Haworth <pete at lcsql.com> wrote:

> But doesn't the presence of "the" and "of <objectreference>" indicate that
> the reference is to a (custom) property not a variable?
>

Not necessarily.

repeat for each word theProp in "a b c"
   set the theProp of me to empty
end repeat

It's necessary to be able to refer to the property with a variable.

The problem is really that if you try to say

   set the "thisProp" of me to "that?

then "thisProp" does not resolve to the quoted contents.  If memory serves,
it's just an illegal value for a property name because it starts with a
quote.




-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list