Solved

Mising tablename property

Posted on 1997-07-23
6
1,707 Views
Last Modified: 2012-06-27
This is a curiosity question rathe than a mission critical one. Intermittently when I save some units I get this message, generally a second save or a build all makes the message go away until the next time. The forms in question have a TTable dropped on the form but I assign the tablename and databasename programmatically. Surely this is reasonable and shouldn't lead to this message?

Thanks.

Tom.
0
Comment
Question by:tomcorcoran
6 Comments
 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
Can you show the code example?
0
 

Author Comment

by:tomcorcoran
Comment Utility
There is no code example. It happens with a number of units, occasionally a save or a compile gives "Missing Tablename property".
0
 
LVL 1

Expert Comment

by:Zonnald
Comment Utility
Tom,
The most obvious time this message would apear is when you try to open the table in your code during run time.  Is this happening?  If it is, can you be sure that the event that sets the tablename occurs before the event that opens that table?

I would suggest that each time you open a table you check the tablename is not empty, if it is then go ahead and set it.
Also it is a good idea to check the Table.State property when doing post and make sure that it is in a dsEditModes state.

These things will help unwanted messages appearing, which confuse the end user.

Good luck

Zonnald

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:tomcorcoran
Comment Utility
Thanks for the comments. Prior to opening a table I always check the tablename property. However, this is not a run-time problem, like I say a second save/Build all always corretcd the problem until next time. This is why I'm not too worried about it, it only happens (at least once a day) at design time. But I still would like to know why. Thanks. Tom.

0
 

Accepted Solution

by:
Wilfred earned 50 total points
Comment Utility
I think you will get this message when table related property's are set (like indexname or if you have created some fields).
When you save your project Delphi tries to validate all  property's and cannot validate any of these table related property's.
0
 

Author Comment

by:tomcorcoran
Comment Utility
Ok, I'll see if I can track anyting down.

Tom.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now