Xbasic

BLOB.PEEKBIT Function

Syntax

New_Blob as B = peekbit(N position)

Arguments

position

The position of bit to return.

Description

Peek at 1-bit of data, offset in bits starting at 1.

Discussion

The .PEEKBIT() method returns the bit at Position.

Example

The following example shows the bits that make the ASCII character A.

b1 = char_to_blob("A")
for i = 8 to 1 step -1
?b1.peekbit(i)
next i
0.000000
1.000000
0.000000
0.000000
0.000000
0.000000
0.000000
1.000000

See Also