Inserts a Unicode variable into a specified position in the BLOB buffer.
Syntax:
BufSetUnicode(variable reference, position, value, storage, length, value as pointer)
Parameters:
variable reference – The reference to the BLOB variable containing the buffer. For example, 'A'VAR
position – The numeric value defining where the conversion result will be placed in the BLOB value.
value – The value to be set.
storage – A numeric value representing a valid storage type in Magic xpa. For a list of storage types, see Magic xpa Storage Types.
length – A numeric value representing the length of the Unicode value.
value as pointer – A logical value indicating if the Unicode value should be written directly to the buffer or as a pointer to the data. If you enter True, Magic xpa writes the Unicode value as a pointer.
Returns:
True when the conversion succeeds. False when the conversion fails.
The function fails when the:
Variable reference does not refer to a valid variable identification.
Variable reference does not refer to a BLOB variable.
Position parameter is a negative value.
Example:
BufSetUnicode('A'VAR,1,'filler',1,6,'FALSE'LOG) inserts filler from the first byte to the sixth byte.