>>In oForm.Init():
>>
>>LPARAMETERS oCallingObj
>>
>>THISFORM.oCallingObj = m.oCallingObj
>>
>>WITH THISFORM.oCallingObj
>>.Some_Property = "Set to this"
>>ENDWITH
>>
>>Is this similar to what you are doing and it doesn't work?
>>
>>-Doug-
>
>Yes,
>
>Custom Class.Init
>
>THIS.AddObject("oForm", "form def")
>THIS.glOK = .F. (The property I want the form to set)
>
>CustomClass.ShowForm() && Custom method
>
>Loads a listbox for the form
>THIS.oForm.Show()
>
>****************
>
>So now the form is showing and I want to have the OK or Cancel buttons set the CustomClass.glOK property. But no matter what I've tried, the form does not recognize the Custom Class.
>
>Thanks,
>Steve
Ahhh...maybe using AddObject is causing the problem?? Try something similar to the example I gave using CreateObject instead. I haven't tried adding a Form as a *member* of another Form and thinking about it doesn't sound kosher.
-Doug-
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only