General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only