General information
Category:
Coding, syntax & commands
>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
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