Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datasession with table.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00184048
Message ID:
00184201
Vues:
21
Luc,
You can also simply place the data into a property in the calling form. If the second form is called from the first, then pass the "THIS" parameter as:
DO FORM NextForm with THIS
Store the value of 'this' (it will be an object) to a form property in the NextForm.Init() code, and at any time you can call a method or property of the first form with
** In the Init
LParameter oCallingForm
This.OCalledFrom = oCallingForm

** When you want to use it
THISFORM.oCalledFrom.PropertyToChange = table1.field2
HTH
Barbara

>Hi everyone!
>
>Does anybody know how to get some data from another datasession without setting : SET DATASESSION TO 1
>
>EX: I have a table opened in datasession 1 (table1.dbf) and another in datasession 2 (table2.dbf). The current datasession is 2.
>
>Why I dont want to do this : SET DATASESSION TO 1
> TMPVAR=TABLE1.FIELD2
> SET DATASESSION TO 2
> RETURN (TMPVAR)
>
> Because doing this, I loose all the controlsource in a Grid.
>
>
>Thank you all....
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform