Salesforce

BufSetNum (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

BufSetNum (Magic xpa 4.x)

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

Syntax:

BufSetNum(variable reference, position, value, storage, length)

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.

length – A numeric value representing the storage length.

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 identification.

  • Variable reference does not refer to a BLOB variable.

  • Position parameter has a negative value.

  • Storage parameter does not contain a valid number.

  • Length parameter does not contain a valid value.

  • Conversion causes an overflow.

See also:

Buffers

SetBufCnvParam

The Online and Rich Client Samples projects (program CS01 and RCS01)

The BufSetNum function does not support internal storage types: Packed Decimal and Numeric.

Reference
Attachment 
Attachment