Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Horrid: information about lists and property lists

Status
Not open for further replies.

proggie

Technical User
Jul 13, 2000
13
VE
HI HORRID.

Can you please tell where I can get information about lists and property lists?

Thanks very much
Nikita.
 
Best place is to use the lingo dictionary. The electronic one in help is probably the quickest to look at.

I will be putting a faq togeather on the basics as soon as I get some time so check back occasionally.

Basic commands for a list are"
to define a list
variable = []
to add an item
add[variable, value]

to delete an item
deleteat[varialbe, number to delete]

to get an item
getat[variable, number to get]

to find the position of a specific item
getone[variable, value to find] --will return 0 if not found

to get the last item
getlast[variable]

to delete the last
deletelast[variable]

property list are more complex. Get a grasp of normat lists before you try propery lists. A basic rundown is that a property list contains a list of containers that each have data within them.
eg [score:"10",player:"fred"] in this example the list contains the users score and name, you could get the value by saying getaprop(variable, score), you can also use dot syntax.

hope this is a help

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top