Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.Dataenvironment.AddObject & Buffering
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00063231
Message ID:
00063242
Views:
38
>I had the following command in my Form Activate method (VFP 3):
>
>WITH Thisform
> .Dataenvironment.Addobject([Cli_name],[Cursor])
> .Dataenvironment.Cli_name.Buffermodeoverride =2
>ENDWITH
>SET STEP ON

I don't suggest placing this code in the Activate() method, since the code will be executed each time the user click on the form. Put this in the Init() event instead.

>Then I tried to select Cli_name, and it told me it wasn't in use.
>
>I tried adding USE Cli_name before and after the Addobject command, which seemed to work, but then when I do a TABLEREVERT or TABLEUPDATE, it tells me I must have a row or table buffering mode set.
>
>SO, I got rid of the Buffermodeoverride command and added
>
>SELECT Cli_name
>=CURSORSETPROP('Buffering', 2)
>
>But that didn't work at TABLEREVERT time.

Do you have SET MULTILOCKS ON?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform