Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many rows are there in grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01290490
Message ID:
01291075
Vues:
9
I believe Cetin answered all your questions, so I won't do that here. However, you might look at Message #1290811 if you didn't see it already.


>That IS interesting. A couple of questions:
>
>(1) What in the world is SetVar, and why is is used here?
>(2) Apparently the value of DynamicFontShadow is irrelevant?
>(3) Could a call to a PRG be used instead of SetVar?
>(4) Does this mean I could know which record is the top record displayed (when rowsData = 1)?
>
>Jim
>
>P.S. I, too, use grids -- they are pervasive in my applications. Couldn't live without them.
>
>
>
>>>>Is there any way to see total number of non-empty rows in a grid?
>>>
>>>You can start with this raw code:
>>>
>>>Snipped...
>>
>>Hey, that's interesting Fabio. I guess what's going on is VFP is saying, when it refreshes the grid, "There's something in the DynamicFontShadow property, so I need to evaluate the DynamicFontShadow." Then when it does that, the SetVar method is called, which increments the rowsData variable. And DynamicFontShadow is only evaluated for the number of visible rows with data. Now, on the day I need this, will I remember this technique <g> (or should I just put it in my grid class as a method - GetNumberOfVisibleRowsWithData).
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform