TX Text Control ActiveX

LoadFromMemory Method

Method

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

Syntax

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

Parameters

ParameterDescription
DataArraySpecifies the byte array to load from.
FormatOptional. 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.
CurSelectionOptional. 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

NameData type
DataArrayOne-dimensional Byte Array
FormatInteger
CurSelectionBoolean
Return valueBoolean

See Also