[TAO] value() to obtain pointer functionality

Peter Haworth pete at lcsql.com
Sat Aug 2 17:52:54 EDT 2014


On Mon, Jul 28, 2014 at 4:36 PM, Richard Gaskin <ambassador at fourthworld.com>
wrote:

> There are some extremely rare cases where "do" is useful, but most uses I
> come across are just habits held over from more limited xTalks like
> HyperCard.


Here's the one that catches me every time:

set the (<any expression here>) of button "xyz" to 10

That results in a compile error "token is not a property".  Tried it using
"value" too but same error.  The only way round this I've found is to use
"do" but why can't the compiler handle this?

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