Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GPF on TableUpdate
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00187843
Message ID:
00187901
Views:
27
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
Map
View

Click here to load this message in the networking platform