Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.


B7006 - How do I add a property to a property list from a variable?

by - Joseph Ganci

I want to add a property to a property list where the property is derived from a variable. For example, 


However the above will add a property "var1" not "property". How do I get around this?

The Symbol function will come to the rescue here.

AddProperty(ProperList, Symbol(var1), var2)

Symbol converts a string into a symbol.  Think of a symbol similarly to a constant in more mainstream programming languages, though this is a broad definition.  At any rate, a symbol contains both the # character and the property name, so there is no need to use the # character here.

There are 0 reviews
Add your review