Salesforce

BufSetBlob (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

BufSetBlob (Magic xpa 3.x)

Converts a BLOB variable into one of the supported storage types at a specified position in the buffer.

Syntax:

BufSetBlob(variable reference, position, value, storage, 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.

storage – A numeric value representing a valid storage type in Magic xpa. For a list of storage types, see Magic xpa Storage Types.

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

Returns:

True when the conversion succeeds. False when the conversion fails.

The function fails when the:

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

  • Variable reference does not refer to a BLOB variable.

  • Position parameter has a negative value.

  • Storage parameter does not contain a valid number.

See also:

Buffers

SetBufCnvParam

The Online and Rich Client Samples projects (program CS02 and RCS02)

Reference
Attachment 
Attachment