Table of Contents
VKeyValue Class: Record Methods
VKeyValue.Delete()
Declaration:
Delete(inKey as String)
Parameters:
- inKey - The Key.
Description:
Deletes the specified inKey and its Value if the key is found. Otherwise, nothing happens.
Example:
kv.Delete( "person.49.name" )
VKeyValue.Get()
Declaration:
Get(inKey as String) as Variant
Parameters:
- inKey - The Key to be found.
Description:
Returns a value associated with the specified inKey. Returns nil if inKey is not found.
Example:
dim vv as Variant vv = kv.Get( "person.49.name" )
VKeyValue.Set()
Declaration:
Get(inKey as String, inValue as Variant)
Parameters:
- inKey - The Key.
- inValue - The Value.
Description:
Inserts pair inKey/inValue into KeyValue store. If the key already exists then an exception is thrown.
Example:
kv.Set( "person.49.name" , "Bob" ) kv.Set( "person.49.age" , 45 ) kv.Set( "person.49.phone", "+1234567890" )
VKeyValue.Update()
Declaration:
Update(inKey as String, inValue as Variant)
Parameters:
- inKey - The Key.
- inValue - The Value.
Description:
Updates the pair inKey/inValue in the KeyValue store.
Example:
kv.Set( "person.49.name", "Bob" ) kv.Set( "person.49.age" , 45 ) kv.Set( "person.49.phone" , "+1234567890" )
VKeyValue.Upsert()
Declaration:
Upsert(inKey as String, inValue as Variant)
Parameters:
- inKey - The Key.
- inValue - The Value.
Description:
Inserts or Updates the pair inKey/inValue in the KeyValue store.
Example:
kv.Set( "person.49.name", "Bob" ) kv.Set( "person.49.age" , 45 ) kv.Set( "person.49.phone" , "+1234567890" )