Gets all the keys and their paired values of an SRP Hash Table in no particular order.

Syntax

List = SRP_HashTable_GetKeyValuePairs(Handle, MajorDelim, MinorDelim)

Returns

A two-dimensional delimited list of the key-value pairs stored in the hash table

Parameters

ParameterDescription
HandleHandle to an existing SRP Hash Table (REQUIRED)
MajorDelimDelimiter to insert between pairs (OPTIONAL, @FM by default)
MinorDelimDelimiter to insert between keys and their values (OPTIONAL, @VM by default)

Remarks

The SRP_HashTable_GetKeyValuePairs returns all the keys and their paired values stored in the hash table as a delimited two-dimensional list. Each key-value pair will be delimited by the character you pass through the MajorDelim parameter, or field marks if you omit MajorDelim. Then, each key and it's value will be separated by the character you pass through the MinorDelim parameter, or a value mark if you omit MinorDelim.

IMPORTANT: You should always release the handle to an SRP Hash Table when you no longer need it by calling SRP_HashTable_Release.

Examples

// Get the key-value pairs using @FM and @VM
List = SRP_HashTable_GetKeyValuePairs(Handle)

// Get the key-value pairs using ~ and ,
List = SRP_HashTable_GetKeyValuePairs(Handle, "~", ",")
  • No labels