Salesforce

BufGetBlob (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

BufGetBlob (Magic xpa 2.x)

Converts a value stored in a specified position in a buffer to a Magic xpa BLOB value.

Syntax:

BufGetBlob(variable reference, position, storage, 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 the starting position of the conversion method.

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

length – A numeric value representing the storage type length.

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:

BLOB string when the conversion succeeds. An empty string when the conversion fails.

The function fails when the:

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

  • Variable reference does not refer to the BLOB variable.

  • The position parameter has a negative value.

  • The position and length parameters are not part of the BLOB's content.

  • The storage parameter does not contain a valid number.

Example:

BufGetBlob ('A'VAR,1,1,1,'TRUE'LOG)

See also:

Buffers

SetBufCnvParam

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

Reference
Attachment 
Attachment