Xbasic
BLOB.PEEKW Function
Syntax
Word_Value as N = peekw(N position)
Arguments
- position
Numeric
Description
Get the value of a 16-bit word from the blob.
Discussion
The .PEEKW() method returns the value of an unsigned word (16 bit) value at a Position in a blob. The first position is 1. This function returns a -1 if the position is past the end.
Example
b1 = file.to_blob("C:\Wallpaper\claire_081003.jpg") ? b1.peekw(10) = 70
See Also