Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox()
Message
 
To
06/04/2001 15:42:26
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00493020
Message ID:
00493026
Views:
20
Hi Chuck,
>
IF m.inactive = 'Y'
>	Messagebox('WARNING: YOU HAVE DESIGNATED THIS ORG INACTIVE.'+CHR(13)+ ;
>				'IF YOU SAVE THIS ORG RECORD AS INACTIVE,'+CHR(13)+ ;
>				'EACH AND EVERY RELATED AUTHORIZATION WILL END IMMEDIATELY.'+CHR(13)+ ;
>				'TO MAINTAIN THOSE AUTHORIZATIONS WITH A DIFFERENT ORG NUMBER,'+CHR(13)+ ;
>				'THEY WILL NEED TO BE RE-ENTERED WITH THE NEW ORG NUMBER.',1+64,'Inactive')
>*	IF ***WHAT HERE??***() = 2 && Pressed 'Cancel'
>*		RETURN .F.
>*	ENDIF
>ENDIF
>
>Notice the ***WHAT HERE??***(), I need to know what to use to catch that value of the MessageBox(). What I want to do here is if the user decided not to change the Inactive to 'Y' (.T.), I want to go back to the form so they change it back to 'N' (.F.). If they decided to go ahead, then, the following code contiunes.

You need to either capture the return from the MessageBox into a variable or test it directly.
if MessageBox() = 2
or
lnRet = MessageBox()
if lnRet = 2
HTH,
Bill Armbrecht
VFP MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform