Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Access the Buffer ???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00093978
Message ID:
00094269
Vues:
19
>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
Fil
Voir

Click here to load this message in the networking platform