Xbasic

BLOB.POKEBIT Function

Syntax

N pokebit(N position,N Value)

Arguments

position

The bit position to write to.

Value

The bit value to write.

Description

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

Discussion

The .POKEBIT() method writes a bit Value into Position.The .POKEBIT() method does not change the size of the blob. Use the <BLOB>.RESIZE() method to change the size of a blob.

Example

dim bb as B
bb = "A"
bb.pokebit(3, 1)
? bb
= E

See Also