Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return a value from show works for modal class forms
Message
From
17/02/2002 22:42:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00619243
Message ID:
00621418
Views:
18
>There's one side effect so. The form can be closed using Clause(x) button only because form's Release() method doesn't work.

Yes, I added a thisform.release to the click method below and it doesn't do anything. (except that right after testing it, my computer froze up and I had to reboot). Anyways, without a usable release method it's virtually useless.

-Rick

>
>>Yes, oddly enough, a myShow method that calls show() and returns a form property will work. What I was stumbling on was that usually you do this in the unload event code. Try the following:
>
>>DEFINE CLASS testform AS FORM
>>	WINDOWTYPE=1
>>	cResult='None'
>>
>>	PROCEDURE myShow
>>		THISFORM.SHOW()
>>		RETURN THISFORM.cResult
>>	ENDPROC
>>
>>	PROCEDURE CLICK
>>		THISFORM.cResult='Test Clicked'
>>	ENDPROC
>>
>>ENDDEFINE
>
>>
>>-Rick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform