Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VCR Controls
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00212975
Message ID:
00212993
Views:
24
>Hello:
>
>Can anyone tell me how to create a VCR control that scrolls and counts the number of records in a form?
>
>Currenly, I have a buttonset control on each one of my tables. This works OK, but I have to click the NEXT button each time to move to the next record. I can't simply hold the button down and scroll. If the form has 1,200 records, I am in trouble!!
>
>In the component gallery, I dragged a VCR control to the form canvas, but I couldn't scroll with it. I could just click each time to proceed to the next record. And, it didn't give me a count of total records in the form.
>
>Any direction to solve this dillema would be greatly appreciated.
>
>TIA
>
>Jason

Try adding a button to the control to the sample you are working with and have a label something like "Bottom".

Then, you can do one of the following

count rest
lnRecs = _tally
(this will move through all records from present to the end of the file)


OR

go bottom
lnRecs = reccount()

then you would have your record count from either present position, or entire set instead of skipping 1 record at a time...
Previous
Reply
Map
View

Click here to load this message in the networking platform