TCustomRichViewEdit.InsertOEMTextFromFile

<< Click to display table of contents >>

TCustomRichViewEdit.InsertOEMTextFromFile

Loads text file (in OEM-defined character set) FileName and inserts its content at the position of caret.

function InsertOEMTextFromFile(const FileName: TRVUnicodeString):Boolean;

(changed in version 18)

"OEM" stands for "original equipment manufacturer". This is character set of MS DOS.

The inserted text (one or more text items) has current text and paragraph styles.

Method type: editstyle editing-style method for insertion.

unicode Unicode note: File content must be in OEM charset. Text will be converted to Unicode.

Platform note: this method inserts OEM text only in Windows version. For other platforms, it works like InsertTextFromFile.

Return value:

"Was reading from from file successful?"

 

See also methods:

InsertTextFromFile;

InsertText.

See also properties:

CurParaStyleNo;

CurTextStyleNo.

See also properties of TRVStyle:

TextStyles;

ParaStyles;

SpacesInTab.

See also:

Saving and loading;

Inserting items at position of caret.