Set Variable or CustomProperty Names with and expression

Brahmanathaswami brahma at
Wed Aug 12 16:08:44 EDT 2015

Peter Haworth wrote:
> Instead of setting individual cprops, you could store the whole array as a
> cprop - "set the uQuoteSets of this stack to aQuoteSets".  When you want to
> use them, "put the uQuoteSets of this stack into aQuoteSets"

"duh"  of course... "if you make and array, just use it"

i will change that right now

> By the way, I entered a QCC report about the ability to use expressions as
> custom property names a few months back. Mark Waddingham commented that it
> should be fairly easy to implement but it hasn't happened yet.

Jacqueline says at least we can use a variable to name a cProp

the IDE is already pass a value  like this

command revInspectorSetProperty pObject, pPropName, pValue
    lock messages
    set the pPropName of pObject to pValue
    unlock messages
end revInspectorSetProperty

But, I like your method.. just store the array!


More information about the Use-livecode mailing list