Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 Error Handling ERs
Message
From
02/02/2001 15:10:26
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00470671
Message ID:
00471948
Views:
28
>We have this now. You have to specify the return value after the return to procname. return to procname .F.

Now as in VFP7 or VFP6? I've been looking at this code for the last 20 minutes and don't know why I don't get 2 wait windows, "Error" and "Works"
oForm = createobject('myform')
oForm.Show(1)
define class myform as form

	add object mybutton as commandbutton

	func getsomething
	return 1 + ''

	proc error
	lparam lnError, cMethod, nLine
	return to click 'error'

	proc mybutton.click
		wait window thisform.getsomething()
		wait window 'Works'
	endproc
enddefine
Meanwhile, this works (in VFP6):
on error proc3()
do proc1

proc proc1
wait window proc2()
return

func proc2
return 1 + ''

func proc3
return to proc1 'Yo!'
Previous
Reply
Map
View

Click here to load this message in the networking platform