Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counting records in a grid?
Message
 
 
À
08/08/2001 08:10:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00541182
Message ID:
00541223
Vues:
19
Rolf,
>As I write this, I get the idea that I might perhaps work around this by setting a filter on the child table (set filter to recId = masterfile.recId) before counting, and then resetting the filter.
>

Instead of using a filter, use the index on the child table explicitly. Ex.
seek *foreign key in child table*
count while keyfield = keyexpression to lncount
The WHILE clause makes the count command start at the present location and work its way sequentially thorugh the records. As long as the correct index is active, this will give you the information you want.

>Another problem that I got a reply to was about how the picture buttons from wizards do not show the pictures when running the compiled application alone in its intended folder, while it works allrigt when running from within VFP.
>
>I tried copying the .bmp's and changing the default directory in the picture buttons class, but it did not work.

You could always compile the BMPs into the EXE then it should be able to find them when it needs them.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform