Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
It's a mystery
Message
 
 
To
17/03/2006 14:50:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01105403
Message ID:
01105409
Views:
13
This message has been marked as the solution to the initial question of the thread.
>
>=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
Previous
Reply
Map
View

Click here to load this message in the networking platform