Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
I think I'd start simple in order to find out where the failure is occuring:
a) try exclusive on table
use enroll exclu
*-- make sure .t. is returned.
llOk = cursorsetprop('buffering', 5, 'enroll')
edit a single record.
x = tableupdate(1, .t., 'enroll')
?Did it work?
b) try adding a record.
check the primary key - no duplicates?
attempt tableupdate on a single insert.
In other words - start very simple - working your way up until you remove the exclu, progress onto more than one insert, check and assume nothing. Its vfp you know.
Robert
>I'm trying to get past a GPF on a TABLEUPDATE command. I can reproduce this
everytime. I've tried recompiling the form, rebuilding the index, rebooted...everything I can think of. Somehow, I think I'm missing something really basic. This is a VFP 5.0 application that I've inherited. Here's the code
>
>
>* Note that enroll is a table
>SET MULTILOCKS ON
>=CURSORSETPROP('Buffering',5,'enroll')
>
>* Do several INSERTS into Enroll
>
>=TABLEUPDATE(2, .T., 'enroll') && <=== GPF always occurs here
>
>
>Any suggestions of where I should be looking?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement