Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to test for grid showing empty when table is not
Message
De
18/08/2005 04:58:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
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:
01041860
Vues:
17
>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

Check if child.fkey # parent.Pkey. ie:(customer parent, orders child)

!(Orders.Cust_ID == Customer.Cust_ID) && Orders.Cust_id is empty.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform