Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with TABLEUPDATE
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00720907
Message ID:
00721078
Views:
16
Chris,

This error is happening because of an environmental difference between your IDE settings and the settings your COM object is using. COM objects run under the default VFP environment, they do not get information from the registry or foxuser.

Add a
LIST STATUS TO c:\comstatus.txt
command your class and compare it's result to what you have in the IDE. You will have to make these synch up inside your Class code.

>I am having trouble with a server class (form with ole public ticked) and compiled as a single threaded com server.
>I am using it to provide access to my visual foxpro database for adding, editing and deleting of records. I am using private data session with optimistic buffer mode. I open the table, set multilocks on and use cursorsetprop to enable table buffering (5). I issue and replace statement then begin transaction, tableupdate then either rollback or end transaction etc. All usual code that I have always used.
>This all works fine if I create an object of the form in the VFP IDE and but if I try to call the replace and tableupdate methods from VB through the .dll the code fails on the tableupdate with the error "Function requires row or table buffering mode"
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform