Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox()
Message
 
À
06/04/2001 15:42:26
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00493020
Message ID:
00493026
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform