Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox()
Message
From
06/04/2001 15:49:22
 
 
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:
00493025
Views:
18
Chuck, messagebox() is a function that returns a value. In other words:

If MessageBox(........) = x
doodah... doodah
else
dont doodah... doodah
endif

Alan

>
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.
>
>Chuck
Previous
Reply
Map
View

Click here to load this message in the networking platform