JVCL Help:TJvConversion.IsFormatCorrect@string
JVCL Help: TJvConversion.IsFormatCorrect Method (string)
Search in JVCL Help
Search in all projectsSummary
Returns whether the converter can import a specific file or stream.
Pascal
functionIsFormatCorrect(constAFileName: string): Boolean; virtual; overload;
functionIsFormatCorrect(AStream: TStream): Boolean; virtual; overload;
functionIsFormatCorrect(AStream: TStream): Boolean; override;
Parameters
Parameters | Description |
const AFileName: string | The file to import. |
AStream: TStream | The stream to import. |
Return Value
Returns true if the converter can import the specified file or stream, false otherwise.
Description
Call IsFormatCorrect to determine whether the converter can import the file specified by AFileName or the stream specified by AStream.
TJvRichEdit will call IsFormatCorrect to determine whether the converter recognizes and can convert the contents of a file or stream.
As implemented in TJvConversion, IsFormatCorrect always returns true. Override this method in a descendant class to check files or streams before the actual import operation.
See Also
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page