The procedures in this library provide some convenient tools for working with lists of Key,Value pairs.
Create a global variable and set it's value to the empty list to hold your list of pairs.
Then you can use any of the following procedures to manage the list:
CreatePair(Pairs,Key,Value) - create a Key,Value pair
RemovePair(Pairs,Key) - remove a Key,Value pair
SetValue(Pairs,Key,Value) - set the Value associated with Key (pair must exist)
GetPairIndex(Pairs,Key) - returns the index of the pair
GetKeys(Pairs) - returns a list of Keys
GetValue(Pairs,Key) - returns the Value associated with a Key
Copy these procedure blocks to Backpack for use in your projects.
The Examples file contains example uses of each of the procedures.
---
sf