Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to Get the filename and path of a local table?



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

Post New Answer

More Delphi Interview Questions

How to Prevent the TEdit component from beeping when invalid ?

1 Answers  


How to Retrieve the line number that a memo's cursor is on?

0 Answers  


How to Detect print errors?

1 Answers  


How to launch a control panel applet?

1 Answers  


What are the Benefits of the ConstraintBroker?

1 Answers  


How to Change the font style of a dbgrid row ?

1 Answers  


How to Get the filename and path of a local table?

1 Answers  


How to Force edit mode in a TListView via a keypress ?

1 Answers  


Can I make calls to Delphi code from C or C++?

1 Answers  


How to Run 16-bit Delphi on Windows NT4?

1 Answers  


How to change the shape of your forms?

1 Answers  


How to get a TRichEdit to scroll in code?

1 Answers  


Categories