Salesforce

BufGetBit (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

BufGetBit (Magic xpa 3.x)

Returns the value of a bit for a specified byte position in a Blob buffer.

Syntax:

BufGetBit(variable reference, position, bit number)

Parameters:

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

position – A number defining the position of the byte in the BLOB variable.

bit number – A value from 1 to 8 representing a bit number in the byte.

Returns:

True when the bit is on. False when the bit is off. If the bit number is not valid, the function returns Null.

Examples:

BufSetNum('A'VAR,1,3,2,1) sets the binary value of the first byte to 00000011 by using the default low-hi conversion parameter.

BufGetBit('A'VAR,1,1) returns False

BufGetBit('A'VAR,1,7) returns True

BufGetBit('A'VAR,1,8) returns True

See also:

Buffers

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

Reference
Attachment 
Attachment