Result = MemoryStringLength(*String [, Flags])
Returns the length (in characters) of the given zero terminated string.


*String The address of the string to get the length from.
Flags (optional) The string format to use. This can be one of the following values:
  #PB_Ascii  : Reads the strings as ascii (default in ASCII mode).
  #PB_UTF8   : Reads the strings as UTF8
  #PB_Unicode: Reads the strings as unicode (default in unicode mode).
Combined with one of the following value:
  #PB_ByteLength: only valid when using the #PB_UTF8 flag, the result will represent bytes (not characters).
                  it can be useful as UTF8 have variable characters lengths.

Return value

Returns the length of the string in characters.

See Also

PokeS(), PeekS(), AllocateMemory()

Supported OS


<- MemorySize() - Memory Index - MoveMemory() ->