loadFromFile(fileName: String; replace: Integer; format: Integer): Integer;
The loadFromFile method of the JadeRichText class loads the contents of a file at the current position of the receiver (that is, at the insertion point in the control).
The loadFromFile method parameters are listed in the following table.
Parameter | Description |
---|---|
fileName | Existing file containing the file whose contents are to be read. If you do not specify a path, JADE looks in the current directory and raises an exception if the specified file is not in the directory or if it does not exist. |
replace | A JadeRichText class constant value that indicates where the text is loaded, as follows. |
|
|
|
|
format | A JadeRichText class constant value that indicates the format of the loaded text, as follows. |
|
|
|
|
|
If the read operation of the file raised an exception, the loadFromFile method returns the appropriate JADE file handling error number (for example, 5030 -