Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GO to a negative recno in a optimistic table buffered cu
Message
De
12/07/2005 09:59:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01031593
Message ID:
01031626
Vues:
10
>Hi
>
>My grid has a optimistic table buffered cursor to it. Now the new records I add are -1, -2 and so on. If I store the recno and the I try to goto it I get an error.
>
>How can I tackle this. I tried locate recno() = mysavedrecno but that did not position the pointer back to the newly added record.
>
>What am I doing wrong.

You have other problems, GO is OK:
CLEAR
SET MULTILOCKS ON

CREATE CURSOR testnegregno (pk i,tx c(20))
CURSORSETPROP("Buffering" , 5)
APPEND BLANK
TABLEUPDATE(.T.)
APPEND BLANK
rn=RECNO()
GO 1
? RECNO()
GO m.rn
? RECNO()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform