Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to prevent automatic INVALID INPUT message from appearing when returning FALSE from valid method.

Tips -N- Tricks

How to prevent automatic INVALID INPUT message from appearing when returning FALSE from valid method.

by  csr  Posted    (Edited  )
VFP automatically displays INVALID INPUT message if you return FALSE from a VALID method. This bothers some developers because they would like to write their own error messages. You can put your own message in the VALID routine but you get the automatic INVALID INPUT message also. Two messages ? I don't think so.

Solution ? Turns out to be quite simple.

Put SET NOTIFY OFF in your main program (or anywhere prior to where it will be needed) and PRESTO !!! Done ! No more automatic INVALID INPUT messages.

Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top