Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 4 of 4 total |
Dataset Table name? |
Sun, Jun 3 2018 2:30 AM | Permanent Link |
Ian Branch | Hi Team,
Using the standard... "procedure TMainForm.ttTTableEditError(DataSet: TDataSet; E: EDatabaseError; var Action: TDataAction);" Wanting to make this procedure a little more generic and a little more informative to the user, so it can be called from different TTables. Is there some way I can retrieve the TableName of the calling Table? There doesn't seem to be any property of DataSet I can use. Regards & TIA, Ian |
Sun, Jun 3 2018 4:57 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Ian
Have you tried just casting it TEDBTable(Dataset).TableName it should work but without figuring out a way to cause an editing error I can't test properly. It did work just using a button click. The only downside is you do need to be pretty sure its a TEDBTable first so you might want to add in if Dataset is TEDBTable then ... Roy Lambert |
Sun, Jun 3 2018 4:58 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Ian
Just a quick ps - the reason there's no tablename property is that it could be a query or something else. Roy Lambert |
Sun, Jun 3 2018 10:12 PM | Permanent Link |
Ian Branch | Cheers Roy.
All good. No, TEDBQuery doesn't have a TableName. Regards, Ian |
This web page was last updated on Wednesday, May 15, 2024 at 08:40 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |