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.


1095 - How do I turn a list of field names into a property list?

by - Joe Ganci

I've got a list of field names and a list of values. Can I use a repeat loop to create a property list?

For example:
Field list = ["forename","Surname"]
Value list = ["Adam","Brown"]

I want to put this into a property list that looks like:

Details[#Forename:"Adam" #Surname:"Brown"]

This is the way it's done:

Details := [:]
repeat with i := 1 to ListCount(field list)
   AddProperty(Details, Symbol(Field list[i]), Value list[i])
end repeat

There are 0 reviews
Add your review