Can dot syntax be used to access a property list element whose 
property name is constructed as a string?

For example:

myList = [#a1: "one", #a2: "two", #a3: "three"]
myProp = "a" & 1


This works...
put getAt(myList, myProp)
-- "one"

But this generates an error...
put myList.myProp
Script error: Property not found
#myProp
-- 
Tom Jacobs
InterVision
www.intervisionmedia.com

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to