Set Variable or CustomProperty Names with and expression

J. Landman Gay jacque at hyperactivesw.com
Wed Aug 12 20:34:23 CEST 2015


On 8/12/2015 12:45 PM, Brahmanathaswami wrote:
> In the end I was unable to figure out how to pass a variable string as a
> name of a custom property.

This is how the object inspector in the IDE does it:

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

function revInspectorGetProperty pObject, pPropName
    lock messages
    get the pPropName of pObject
    unlock messages
    return it
end revInspectorGetProperty

So it should work if you concatenate the property name and pass that to 
a handler like the above.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list