>I have a custom class that needs to trap some input from a form dialog. The custom object creates the form object and displays it via oform.Show(). The form has typical OK and Cancel buttons but when trying to set a property in the custom class, I cannot seem to get the form to reference the custom object. I've worked much with passing a reference of the custom class to the dialog form and although TYPE() returns an "O", I continually get an error message about WITH/ENDWITH. The custom class gets added to a container which has other controls on it and is added to a form. This custom class should be able to be put in any for or container so a generic reference to it needs to be recognized by the dialog form.
>
>What am I missing here.
>
>Steve Despres
>EZ Data Inc.
In custom class:
THIS.oForm = CREATEOBJECT("theForm", THIS)
THIS.oForm.Show()
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-
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