PokeS()

Syntax

Result = PokeS(*Buffer, Offset, Text$ [, Length [, Flags]])
Description
Writes a string to the specified memory address, followed by a null-character for termination.

Parameters

*Buffer The buffer to write to. It must have been allocated with AllocateMemory() or ReAllocateMemory().
Offset The offset (in bytes) in the buffer.
Text$ The string to write.
Length (optional) The maximum number of characters to write. If this parameter is not specified or -1 is used then the full length is written. The terminating null-character that is always written (unless the #PB_String_NoZero flag is set) is not included in this count.
Flags (optional) The string format to use when writing the string. This can be one of the following values:
  #PB_Ascii  : Writes the strings in ascii.
  #PB_UTF8   : Writes the strings in UTF8 (default).
  #PB_Unicode: Writes the strings in unicode.
It can be combined with the following constants:
  #PB_String_NoZero: Doesn't write the terminating null-character.

Return value

The amount of bytes written to memory, not including the terminating null-character. The amount of written bytes differs from the string length in characters if the format is #PB_UTF8 or #PB_Unicode.

See Also

PeekS()

Supported OS

All

<- PokeL() - Memory Index - PokeU() ->