Salesforce

BufSetDate (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

BufSetDate (Magic xpa 3.x)

Converts a Magic xpa date to a binary value in a specified position and storage type in the buffer.

Syntax:

BufSetDate(variable reference, position, value, storage)

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 Magic xpa valid storage type. For a list of storage types, see Magic xpa Storage Types.

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.

Example:

BufSetDate ('A'VAR,1,Date(),1) converts a current date into BLOB variable A starting from the first byte.

See also:

Buffers

SetBufCnvParam

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

Reference
Attachment 
Attachment