Messenger Plus! Live - Scripting Documentation

The DataBloc::ReadString function reads a string (in ANSI or Unicode) from the memory block.

Syntax

[string] ReadString(
    [number] Offset,
    [boolean,optional] ReadUnicode,
    [number,optional] Size
);

Parameters

Offset
[number] Index in the memory block where the string will be read.
ReadUnicode
[boolean,optional] Specifies if the string to read is ANSI or Unicode. The default if not specified is true for Unicode.
Size
[number,optional] The size (in characters) of the string to read. If not specified, Messenger Plus! stops at the first null character.

Return Value

The string read from the memory block. If Size is not specified and no null character is found, the return is an empty string.

This function typically fails for one of the following reasons:

Remarks

None.

Function Information

Object DataBloc
Availability Messenger Plus! Live 4.00

See Also

DataBloc Object, WriteString.