Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return a value from a form object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00643888
Message ID:
00643895
Vues:
8
You could pass a reference to the calling object so that the form called changes a property on the calling object. Or use a public container that stores the value for all to see.

Just a thought.

John Rowlinson
Microworks POS Solutions



>>Hi everybody,

>>I know how to return a value from a form this way :

>>DO FORM name TO returnvar


>>But my case is a little different. A create a formset object in which I add a form. My form is an object stored in a vcx class. Here's how I do that :

>>oFormSet = CreateObject("FormSet")
>>oFormSet.WindowType = 2
>>oFormSet.AddObject("MyMainForm","MyFormClass")
>>oFormSet.MyMainForm.Visible = .T.
>>oFormSet.Show()
>>oFormSet.Release


>>What would be the better way to return a value from the object "MyMainForm" ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform