Salesforce

BufSetVector (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

BufSetVector (Magic xpa 3.x)

Converts a Magic xpa Vector value into one of the supported storages at a specified position in the buffer.

Syntax:

BufSetVector (variable reference, position, value, cell storage, cell length, value as pointer)

Parameters:

variable reference – The reference to the BLOB variable containing the buffer. For example, 'A'VAR

position – The numeric value defining where the conversion result will be placed in the BLOB value.

value – The value to be set.

cell storage – The storage type of the vector cells that will be used when the external vector is read from the buffer. This parameter can be any of the appropriate storage types that relate to the cell attribute.

cell length – The storage length type of the vector cells that will be used when the Magic xpa vector is created from the external vector. This parameter can be any of the appropriate lengths that relate to the storage type.

value as pointer – A logical value indicating if the Vector value should be written directly to the buffer or as a pointer to the data. If you enter True, Magic xpa writes the Vector value as a pointer.

Returns:

True or False indicating the success or failure of the function.

The function fails when the:

  • Variable reference does not refer to a valid variable identification.

  • Variable reference does not refer to a BLOB variable.

  • Position is a negative value.

  • Storage parameter does not contain a valid number.

See also:

Buffers

BufGetVector

The Online and Rich Client Samples projects (program CS04 and RCS04)

Reference
Attachment 
Attachment