Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from AsktoSave not IDYES
Message
From
28/10/2003 12:53:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Return value from AsktoSave not IDYES
Miscellaneous
Thread ID:
00843642
Message ID:
00843642
Views:
52
I put in an a cbizobjform.AsktoSave() call, and need to perform additional actions if the user actually saved. The return value was 0 instead of IDYES(6), changed to that by the return value of the SaveRecord call. I added the two commented lines as a workaround. Is this a bug, or something I'm not doing correctly?
CASE lnAnswer = IDYES
	*----------------------
	*--- Save the record
	*----------------------
	lnAnswer = This.SaveRecord()
	IF lnAnswer = FILE_MUSTKEY
		lnAnswer = IDMUSTKEY
	ELSE
		IF lnAnswer <> FILE_OK
			lnAnswer = IDCANCEL
*		ELSE
*			lnAnswer = IDYES
		ENDIF
	ENDIF
Next
Reply
Map
View

Click here to load this message in the networking platform