Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox()
Message
De
06/04/2001 15:49:22
 
 
À
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:
00493025
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform