Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visible rows in a grid
Message
De
28/02/1998 18:27:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00081557
Message ID:
00081919
Vues:
26
>id.height/grid.rowheight seems to be rather clumsy - how the hell Fox knows w he >n to scroll if user skips records by DnArrow? There must be something simple. > >I used the clumsy method you described above, and it worked fine. (Of course , >remember you have to subtract the RowHeight and I think something like 1 to 3 p >ixels for borders.) I can dig up the formula I used if you want it. What I wa Don't bother - I'm a mathematician, formula's no problem (besides, I use foxels, so the calc should look very different - the border size should be recalculated into them). >s unable to find was a way to know the TOTAL rows displayed in the Grid. I e nd >ed up doing a RECCOUNT() on the RecordSource, but this has obvious flaws, e.g ., >deleted records are a problem. You can always Set Deleted Off Count For Deleted() NoOfRecs=recc()-_tally Set Deleted &oldSetDeleted This involves moving the record pointer, and if you have a filter, it will lie. The only way I know which will work is Count NoOfRecs=_tally You didn't ask me "what do you need that for", so I won't ask you :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform