Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement