Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display error message
Message
From
04/09/2007 02:50:31
 
 
To
03/09/2007 16:58:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01252035
Message ID:
01252082
Views:
13
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform