Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display error message
Message
De
04/09/2007 02:50:31
 
 
À
03/09/2007 16:58:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01252035
Message ID:
01252082
Vues:
12
>Hi everybody
>
>When using the valid event in a form's object if an error occurs, the message "invalid entry" is displayed. How can I display my own error message?..
>
>
>Thanks in advance.
>Carlos Burgos

Hilmar gave you the best answer, but once in a while this is needed.

There is no way that I know of to change the text of the invalid message. But you can prevent it all together or simulate it.
IF lThisIsAnError
  ?? CHR(7)
  WAIT WINDOW "That's Wrong!" NOWAIT  && You could use any form of notification here
  RETURN 0                            && use 0 instead of .F.
ENDIF
RETURN .T.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform