[TAO] value() to obtain pointer functionality

Peter Haworth pete at lcsql.com
Sat Aug 2 21:08:17 EDT 2014


Right, actually that's what I ended up doing instead of using a "do"
statement.  Just not clear why the compiler can't evaluate an expression as
a cprop name.

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


On Sat, Aug 2, 2014 at 5:05 PM, J. Landman Gay <jacque at hyperactivesw.com>
wrote:

> On 8/2/2014, 4:52 PM, Peter Haworth wrote:
>
>> 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?
>>
>
> Try:
>
> put <expression> into tProp
> set the tProp of button "xyz" to 10
>
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
>
> _______________________________________________
> 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