Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine total rows in grid
Message
 
To
16/08/2005 05:33:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01041245
Message ID:
01041249
Views:
28
>When you add the table is buffered so in other words the data is only flushed to the table when you call a 'Tableupdate()'. So, the user can continually add records before the grid is flushed, so you can't use reccount() on the physical table/cursor.

No way. Try:
CREATE CURSOR Test (Test C(10))
SET MULTILOCKS ON
CURSORSETPROP("Buffering",5,"Test")
FOR asd = 1 TO 10
    INSERT INTO Test VALUES ("1")
NEXT
? RECCOUNT("Test")
USE IN Test
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform