Memory.SizeString

number Memory.SizeString ( 

number  Memory )

Description

Returns the length (in characters) of the given zero terminated string.

Parameters

Memory

(number) Address of Memory.

Returns

(number) Returns the length (in characters) of the given zero terminated string.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Example

mem = Memory.Allocate(1024) Memory.PutString(mem, "Hi", -1, "Ascii") Dialog.Message("Size of String in Memory", Memory.SizeString(mem)) Memory.Free(mem)

See also:  Related Actions

Сайт управляется системой uCoz