Hi Jonathan
Generally when you create a property list that you want to begin adding
properties and items to, you create an empty property list on the outset
then add the list entries (in this case properties and value pairs) to it.
The line
vPDList = [:]
generates an empty property list to which properties can then be added.
If you were going to do a linear list, then you would do vSomeLinearList =
[], then you can vSomeLinearList.add(item). If you fail to initialize a list
before attempting to add an item to the list then you will get a handler not
found in object addProp() or some such error. There are other ways to
initialize an empty list, this is just one method that can be used.
Sincerely
Mark
--------------------------------------------
Mark R. Jonkman
Mark R. Jonkman Consulting
ADDRESS: 20 Windermere Crt., Guelph, ON, CANADA N1E 3L4
PHONE: 519-837-8509
EMAIL: [EMAIL PROTECTED]
--------------------------------------------
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Merlin
> Sent: Monday, February 05, 2001 4:52 AM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> Property description Lists
>
>
> Thank you all, those were great examples.
>
> I think I've got the idea now.
> One final question though, what does this actually do " vPDList = [:] " ?
>
> Thanks
> Jonathan
>
>
>
>
> [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!]
>
[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!]