This content has been marked as final. Show 2 replies
your method assumes that the property in the list is called myProp (or
#myProp is using the old verbose syntax) but it's just a variable that
contains the actual name. You won't be able to use the syntax as you would
like but the next best thing would be to use
myPropList [myProp] = newValue
The nice thing about this method is that you don't need to initialize the
property in the list first.
Also, make sure myPropList is a property list first but since you identified
the list in your posting I'm assuming it is valid and that the handler has
access to it, i.e., it is a global variable or a property of a behavior,
Word of Mouth Productions
phone 212 928 9581
fax 212 928 9582
159-00 Riverside Drive West #5H-70
NY, NY 10032
"e_tienne" <email@example.com> wrote in message
> I have a property list like this
> I would like to modify the properties with dynamic property naming. So I
> this :
> myProp=symbol("prop"&string(propNum)) -- ie #prop2
> Director returns an error message -- property not found
> I can do it with
> setProp (mypropList,myProp,newValue)
> but I would like to keep the pointed syntax... I have a very complicated
> and the classic syntax is a mess...
> is there a way to do it with pointed syntax ?
Thanks very much, it works great !!!