TXTextControl.TXTextControl.LoadFromMemory Method

Loads text in a certain format from a buffer and inserts it into the Text Control.

Syntax

TXTextControl.LoadFromMemory DataArray[, Format[, CurSelection]]
Parameter Description
DataArray

Specifies the byte array to load from.

Format

Optional. Specifies a format identifier. When not specified Text Control assumes Text Control's internal format (3). See the Format parameter of the Load method for possible format identifiers.

CurSelection

Optional. When set to true the loaded data replaces the current selection or is inserted at the current input position. The new input position is behind the inserted data. When omitted or set to false the loaded data replaces the complete control contents independent of the current selection. The new input position is at the beginning of the data.

Return Value

The method returns True if the data could be loaded, otherwise it returns False.

Data Types

DataArray:    One-dimensional Byte Array
Format:    Integer
CurSelection:    Boolean
Return value:    Boolean

See Also