Xbasic

BLOB.PEEKC Function

Syntax

Blob_Data as C = peekc(N position,N length)

Arguments

position

The starting position of the data to return.

length

The number of bytes of data to return.

Description

Get the value of a substring from the blob.

Discussion

The .PEEKC() method returns a string of the characters starting at Position and going for Length for the blob. The first position is 1.

Example

dim bb as B
bb = "Alpha"
? bb.peekc(2,3)
= "lph"

See Also