Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids... Record x of xyz?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00519547
Message ID:
00519573
Views:
16
>Hello Everyone!!!
>I have form that has a pageframe that has a grid that finally works :-). Now I am wondering if there is a property that I can use that would let me put in a label or a textbox something like :
>Record 1 of 80
>I know that I could get the 80 from the _tally but How can I tell the grid to give me the current record number and send it to my textbox or label everytime it changes?
>
>Thanks in advance

This is that I have in Grid class AfterRowColChange event (I have property tablename of thisform):
********************************************************************
*  Description.......: grd.AfterRowColChange
*  Calling Samples...:
*  Parameter List....:
*  Created by........:
*  Modified by.......: Nadya Nosonovsky 05/25/2001 10:35:54 AM
********************************************************************
lparameters nColIndex
local lnRecno, lnNumberOfRecords
lnRecno=recno()
lnNumberOfRecords=reccount()
with this
    .parent.GrdHglt1.Highlight_Row()
     if .nCurRec<>m.lnRecno          
          thisform.navstand.navupdate()
          .nCurRec=m.lnRecno
          .statusbartext=space(20)+"Record "+;
               alltrim(str(m.lnRecno))+;
               " of "+alltrim(str(m.lnNumberOfRecords))+' in '+thisform.tablename
     endif
endwith
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform