TheLazyPig
Programmer
Hi, I wanted to know the count of records or data in my Grid View. I'm using Label to view the count. Where will I start?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I know and that's why I put it precisely at that point. From VFP Hacker's Guide_TALLY is very volatile.
@ MikeHowever, the wide range of commands that affect _TALLY lends itself to all kinds of possibilities. We bet most of you have sections of code that perform one of the commands above, then use COUNT or RECCOUNT() or ALEN() to see how many records were affected (we sure do). And there was _TALLY just waiting to give you the answer.
Sure is. However we all assumed that he is using a table/cursor/view to populate the grid and offered a solution. The answer to his simple question is: he has to be aware that the RECORDSOURCE and the RECORDSOURCETYPE of his grid will strongly impact on the code he has to write to count the records of the grid.This is an interesting discussion, and I hope it will continue. But I wonder if we haven't thoroughly confused the OP. He asked a simple question, but he has received vastly more information ...