How to Get the filename and path of a local table?
Answer / 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 |
How to Prevent the TEdit component from beeping when invalid ?
How to Retrieve the line number that a memo's cursor is on?
How to Detect print errors?
How to launch a control panel applet?
What are the Benefits of the ConstraintBroker?
How to Change the font style of a dbgrid row ?
How to Get the filename and path of a local table?
How to Force edit mode in a TListView via a keypress ?
Can I make calls to Delphi code from C or C++?
How to Run 16-bit Delphi on Windows NT4?
How to change the shape of your forms?
How to get a TRichEdit to scroll in code?