Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On error
Message
From
26/02/2007 10:11:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01198769
Message ID:
01198771
Views:
7
>If I wrote
>
>on error 1881 = messagebox ("bad data")
>
>it works OK, but if I wrote
>
>on error 1881 do form error1
>
>It gives sintax error
>
>What can be wrong ?

You got first thing right by accident only. The correct syntax is:
ON ERROR [your command]
It means you could say:
ON ERROR Do Form Error1
and within the form you could check error number (by using ERROR()) and show appropriate message.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform