Xbasic

BLOB.POKE Function

Syntax

Value_Written as N = poke(N position,N Value)

Arguments

position

The position to write the data.

Value

An 8 bit value.

Description

Set the value of a byte of the blob.

Discussion

The .POKE() method sets a byte at Position in a blob to a Value. The first position is 1.The .POKE() method does not change the size of the blob. Use the <BLOB>.RESIZE() method to change the size of a blob.

Example

b1 = char_to_blob("ABC")
? b1.poke(2,50)
= 50
? b1
= A2C

See Also