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
The default is #PB_Unicode if the program is compiled in unicode mode and #PB_Ascii otherwise.

Return value

Returns the length of the string in characters.

See Also

PokeS(), PeekS(), AllocateMemory()

Supported OS

All

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