#Description: Example code for ISKeyValueList.
#Author: Intersoft Systems Limited
#Version: 1.00
#Last Updated: 17/03/2014

Dim kvl As ISKeyValueList
Dim strTemp As String

' Create List
kvl = finBL.CreateKeyValueList()

With kvl
  ' Clear
  .Clear()

  ' Deserialise from an XML string
  .FromXmlString(strTemp)

  ' Add Items
  .SetBoolean("BooleanValue", True)
  .SetDate("DateValue", Now)
  .SetInteger("IntegerValue", 999)
  .SetString("StringValue", "a string value")

  ' Check to see if a value exists.
  If .Exists("key") Then
    ' Key exists
  End If

  ' Get Items
  strTemp = .GetString("StringValue")

  ' Serialise to an XML string
  strTemp = .ToXmlString()
End With