TMainForm.GetNewDoc Method
Definition
Returns a document instance.
Delphi
function GetNewDoc(const FileName: string = ''): TDocumentAncestor
Parameters
- FileName
- string
Returns
Remarks
The FileName can be empty. Use it only to check the extension and if the file exists or not, but don't load it. It's done by the standard "File / Open" option. Depending on the file extension, returns the good TDocumentAncestor descendant.