MemoryStringLength()

Syntax

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

Parameters

*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.
  #PB_UTF8   : Reads the strings as UTF8
  #PB_Unicode: Reads the strings as unicode (by default, see 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

All

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