Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to test for grid showing empty when table is not
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01041835
Message ID:
01041848
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform