Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine total rows in grid
Message
 
À
16/08/2005 05:33:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01041245
Message ID:
01041249
Vues:
27
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform