faqts : Computers : Programming : Languages : Delphi

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

23 of 34 people (68%) answered Yes
Recently 7 of 10 people (70%) answered Yes


Is there any sort of a mapping data type in Delphi?

Mar 2nd, 2000 17:29
Sean Blakey,

The closest thing I have found to a mapping data structure (like a Lisp 
Property List or a Python Dictionary or a Perl Associative Array) is 
the TStringList class.  If you add string to this list in the form 
"name=value" you can access the values through the "Values" property.  
For example:
my_list := TStringList.Create();
Apparently this functionality was kludged in to ease the parsing 
of .ini files.