Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to test for grid showing empty when table is not
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01041835
Message ID:
01041848
Views:
22
>How can you test a grid to see if it is empty when the table supporting it is not. I have two tables (parent-child relationship) showing at the same time. When I move the record in the parent table that has no associated records in the child table the child table's grid is empty. I have buttons that allow you to edit and delete the selected child record and I want to disable these buttons if there are no records showing in the child table's grid. Is there a simple way to test for this?
>
>Colombo

Hi Jim,
Try in AfterRowColChange event on grid, where RecordSource is parent table
button1.enabled = NOT EOF('childtable')
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform