>
>=doForm(m.lcForm, c_BatchImports.cBatch_Imports_pk, .cAction)
>
>
>Just curious. I assume that the DoForm function returns a value to indicate success or failure.
>
>Is there some reason that you are not checking it?
Good point. However, this function doesn't return success or failure. Here is what it can return:
IF TYPE("loObject") == "O" AND !ISNULL(loObject)
loObject.Show()
IF TYPE("loObject.uRetVal") <> "U"
IF loObject.WindowType = WIN_MODAL ;
AND TYPE("goApp.oForms")=="O"
goApp.oForms.Remove(loObject)
ENDIF
RETURN loObject.uRetVal
ENDIF
ENDIF
It also doesn't have any checking, if the form can be instantiated or not.
Anyway, in the meantime I was able to solve the problem. Once I changed Destroy() to Cleanup() in the form's Init method, it worked. No more errors.
Thanks again for your help.
If it's not broken, fix it until it is.
My Blog