Information générale
Catégorie:
Programmation Orientée Object
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
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