N pokec(N position,C String)
The position to write the data.
The character string to be written.
Set the value of a substring to the blob.
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.
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