Answer Posted / Ashish Kumar Pankaj
In Delphi, tables do not have a file system representation like files. If you meant a TTable from a database (like TClientDataset), you can use `FileName` property to get the file name and `DatabaseName` property to get the database name. Here's an example:nn```delphinprocedure TForm1.Button1Click(Sender: TObject);nbeginn Memo1.Lines.Add(Format('File Name: %s', [MyTable.FileName]));n Memo1.Lines.Add(Format('Database Name: %s', [MyTable.DatabaseName]));nend;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can one prevent a TForm from being moved or resized?
How to Create resource files?
How to Determine the last access time of a given file ?
How to Retrieve the line number that a memo's cursor is on?
How to Change the default width/height of the editor?
How to Save a QuickReport custom preview to text?
How to Get the time and date in Universal Time ?
How to Retrieving the program that is associated with a given extension?
How to Remove drives listed in a TDriveComboBox ?
How to Flush binary file from disk cache to disk ?
How to Change the owner of a component at runtime ?
How to Print in Delphi without using the TPrinter Unit ?