Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Access the Buffer ???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00093978
Message ID:
00094269
Views:
18
>I am using Pessmistic Table/Row buffering - is there a way to display the buffer (in a form?) before the data is commited with tableupdate()?
>
>Thanks
>
>Aaron

I don't think that OLDVAL()/CURVAL() works with pessimistic buffering. Also, if you want to use the same datasession as another form, just set the child for to the one you want.

DO MyOtherForm WITH THISFORM.DataSessionID

In the .Init() of MyOtherForm
LPARAMETERS vnDatasessionID
THISFORM.DataSessionID = vnDatasessionID

Now your child form is running with the same datasession as the parent. If you want to access the tables in the other form;

DO MyOtherForm WITH THISFORM

In the .Init() of MyOtherForm
LPARAMETERS voParentForm
THISFORM.oParentForm = voParentForm (assumes you created the property oParent)

Now you can utilize the DataEnvironment (and all of it's cursors) with
THISFORM.oParentForm.DataEnvironment.somecursor

Make sure to set oParentForm to .NULL. in the .Destroy() event of MyOtherForm.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform