Delphi:TAssArr

A rather neat feature of programming languages such as PHP and JavaScript is the ability to define array variables whose contents are indexed using descriptive text labels. For instance the $_SERVER superglobal variable in PHP is an associative array whose contents can be accessed using descriptive labels such as REQUEST_URI, HTTP_REFERER etc. Here we provide a Delphi implementation. The principal properties of TAssArr are listed below

Inappropriate use of these properties is liable to throw the following exceptions

The principal methods of TAssArr are listed below

Usage:Create an instance of TAssArr whenever you need to store a sequence of values, or objects, that are associated with a unique descriptive key. To create a two dimensional array simply store individual instances of TAssArr in another instance of TAssArr configured to store pointers. Use TAssArr methods and properties to manage your entries. Remember to free the instance once you are done. If you create a two dimensional association remember to free every instance of TAssArr!
Download
Jump To...

Colophon