Applies to
Declaration:
bool SetTextVar(int Editor,object Data, string Format, bool InsertText);
The .NET Assembly also defines:
public bool SetBytes(int Editor, byte[] Data, string Format, bool InsertText)
Description
Both methods can be used to load the text from a variant / array of bytes. This has the advantage that RTF data (which is plain ASCII code) does not have to be passed as unicode string.
Parameters
Editor |
The editor to update: 1 or 2 |
Data |
THe text as OleVariant. If it is null nothing happens, if it is empty the text will be cleared. Please use an array of bytes to load data from a data base blob. |
Format |
A string which specifies the loading options. |
InsertText |
true to insert text, false to replace all text with this data |
Returns
True if loading went ok.
Also see GetTextVar!