COLLECTION.ENUM_ALL Function
Syntax
Key_List as C = Enum_All()
Description
Returns all the keys in a CR-LF separated string.
Discussion
The <COLLECTION>.ENUM_ALL() method returns all of the keys in the specified collection in a CR-LF separated string. Contrast this the <COLLECTION>.DUMP() method which outputs both the key and the data into a CR-LF delimited string.
Example
The following code in the interactive window defines a collection and then creates a variable, x, with the keys in the collection.
dim mycollection as u mycollection.SET("FJ","Fred Jones") mycollection.SET("BB","Bryan Boyd") mycollection.SET("KL","Kim Lee") mycollection.SET("KB","Karen Boyd") mycollection.SET("EL","Erica Loyd") x = mycollection.enum_all() ? x = "FJ BB KL KB EL "
See Also