A Got-Ya

Peter Haworth pete at lcsql.com
Thu Jan 22 13:07:45 EST 2015


On Wed, Jan 21, 2015 at 4:56 PM, Dr. Hawkins <dochawk at gmail.com> wrote:

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

That's correct, but the contents of theProp variable should still be
interpreted as a custom property name, not a variable because of "the" and
"of me".

The original problem was that if, eg, a is defined as a local variable and
the command in the repeat statement is "get theProp of me", you get the
contents of the local variable a, not the custom property a.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>



More information about the use-livecode mailing list