how to get the value of a custom property if the name of the cProperty is in a variable?

Mark Waddingham mark at
Tue Aug 8 02:57:21 EDT 2017

On 2017-08-03 05:39, Monte Goulding via use-livecode wrote:
> Er… why if you know the name wouldn’t you type it unquoted? Are you
> really suggesting to put any expression there? The property/function
> ambiguity with `the` will make our heads explode!

For the reason Dr Hawkins originally asked about ;)

There is no ambiguity if we have:

    1. 'the' IDENTIFIER 'of' ...
    2. 'the' STRING 'of' ...
    3. 'the' '(' EXPRESSION ')' 'of' ...

The key thing about making property syntax more flexible (e.g. multiple 
words - unquoted) is to enforce 'the' and 'of' - indeed, if you use a 
custom (non engine keyword) name of any kind then both are required so 
that's good :)

In any case, I got around to looking at it this morning and case (2) 
almost works already. Doing:

   set the "catness" of this stack to "very"

   put the customKeys of this stack

   put the "catness" of this stack

Results in a catness (no quotes) key in the stack's custom properties, 
but an execution error (source is not a container) when evaluating it.

Warmest Regards,


Mark Waddingham ~ mark at ~
LiveCode: Everyone can create apps

More information about the Use-livecode mailing list