|
The scripting dictionaries
|
Previous Top Next |
|
|
|
|
| Please Note:
|
| The .AddItem() and .UpdateItem() methods have been supplanted as of version 8.1.4 of Kiwi Syslog Daemon, by the .StoreItem() method. However, to ensure backwards compatibility the usage of .AddItem() and .UpdateItem() will continue to be supported.
|
|
|
| AddItem(dicName As String, dicKey As String, dicItem As Variant)
|
|
|
| The AddItem method adds a key, item pair to a named dictionary. An error will occur if the key dicKey already exists in the dictionary dicName.
|
|
|
| dicName Required. The name of the dictionary. If dicName does not exist, it will be created.
|
| dicKey Required. The key associated with the item being added.
|
| dicItem Required. The item associated with the key being added.
|
|
|
| eg. Call Dictionaries.AddItem("MyDictionary", "MyKeyName", "MyItemValue")
|
|
|
|
|
| UpdateItem(dicName As String, dicKey As String, dicItem As Variant)
|
|
|
| The UpdateItem method updates the item associated with key dicKey to the value in dicItem. Only the dictionary dicName is affected. An error will occur if dictionary dicName does not exist, or if key dicKey does not exist.
|
|
|
| dicName Required. The name of the dictionary.
|
| dicKey Required. The key associated with the item being updated.
|
| dicItem Required. The new item to be updated.
|
|
|
| eg. Call Dictionaries.UpdateItem("MyDictionary", "MyKeyName", "MyNewItemValue")
|
|
Function Name
|
Error Description
|
|
GetName()
|
Script Error executing .GetName() - Dictionary does not exist
|
|
Delete()
|
Script Error executing .Delete() - Dictionary [x] does not exist
|
|
AddItem()
|
Script Error executing .AddItem() - Dictionary Key [x] already exists in dictionary [y]
|
|
UpdateItem()
|
Script Error executing .UpdateItem() - Dictionary Key [x] does not exist in dictionary [y]
|
|
|
Script Error executing .UpdateItem() - Dictionary [x] does not exist
|
|
RemoveItem()
|
Script Error executing .RemoveItem() - Dictionary Key [x] does not exist in dictionary [y]
|
|
|
Script Error executing .RemoveItem() - Dictionary [x] does not exist
|
|
RemoveAllItems()
|
Script Error executing .RemoveAllItems() - Dictionary [x] does not exist
|
|
GetItemCount()
|
Script Error executing .GetItemCount() - Dictionary [x] does not exist
|
|
GetItems()
|
Script Error executing .GetItems() - Dictionary [x] does not exist
|
|
GetKeys()
|
Script Error executing .GetKeys() - Dictionary [x] does not exist
|
|
GetItem()
|
Script Error executing .GetItem() - Dictionary Key [x] does not exist in dictionary [y]
|
|
|
Script Error executing .GetItem() - Dictionary [x] does not exist
|
|
ItemExists()
|
Script Error executing .ItemExists() - Dictionary [x] does not exist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|