Switch to: V14V13V12V11V10V9V8V7V6V5

VLink Class: KeyValue Methods

VLink.CreateKeyValue()

Declaration:

CreateKeyValue( 
    inName as String,
    inOptions as Int64 )

Parameters:

  • inName - The name for new KeyValue.
  • inOptions - Bitset of options.

Description:

Creates a new empty KeyValue For Link.

You can specify options:

kTemporary kCompressed Temporary KeyValue keeps files on .tmp volume of Valentina database. Information about such temporary database object is not saved into system tables.

Compressed KeyValue does compression of Big Values. These are values that go into internal segment file (like BLOB). Picture values are not compressed.

Example:

dim kv as VKeyValue = link.CreateKeyValue( "kvMoreFields" )

VLink.DropKeyValue()

Declaration:

DropKeyValue( inKeyValue as VKeyValue )

Parameters:

  • inKeyValue - The KeyValueForLink that should be deleted.

Description:

Removes the specified KeyValueForLink.

Example:

link.DropKeyValue( kv2 )

VLink.KeyValue(index)

Declaration:

KeyValue( inIndex as Integer ) as VKeyValue

Parameters:

  • inIndex - The index of a KeyValue in a database, starts from 1.

Description:

Returns a KeyValue by a numeric index.

Example:

kv = link.KeyValue( i )

VLink.KeyValue(name)

Declaration:

KeyValue( inName as String ) as VKeyValue

Parameters:

  • inName - The Name of a KeyValue.

Description:

Returns a KeyValue by name.

Note: The parameter inName is case insensitive.

Example:

kv = link.KeyValue( "kvMoreFields" )