referencing user variables
Posted: 29 Apr 2016 16:27
If I create a user variable in an object, I can refer to it in a script as objectName.variableName. This works as one would expected.
However, if I use findobject('objectName').variableName, this gets a syntax error. setexpression(findobject('objectName'), ‘variableName’, value) works. So why doesn’t the dot operator work after findobject('objectName')?
However, if I use findobject('objectName').variableName, this gets a syntax error. setexpression(findobject('objectName'), ‘variableName’, value) works. So why doesn’t the dot operator work after findobject('objectName')?