Xbasic
BLOB.POKEC Function
Syntax
N pokec(N position,C String)
Arguments
- position
The position to write the data.
- String
The character string to be written.
Description
Set the value of a substring to the blob.
Discussion
The .POKEC() method sets characters in a blob starting at specified Position to the Input_String. The first position is 1. The .POKEC() method does not change the size of the blob. Use the <BLOB>.RESIZE() method to change the size of a blob.
Example
This example overwrites the first 3 character positions in the blob.
dim b2 as B b2 = "fred" ? b2 = fred b2.pokec(1,"tom") ? b2 = tomd
Here is an example of code that dumps out all the bytes in a blob to the Trace window:
dim shared blob as b ' Write all the bytes to the trace window for i = 1 to blob.size() trace.writeln(blob.peek(i)) next i
See Also