Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Error 1 Message Parameter is wrong
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01055190
Message ID:
01055234
Views:
9
>
>clear
>ON ERROR ? MESSAGE(),ERROR()
>? "Expected, the full name :"
>ERROR 1,"C:\NOTEXISTS\MYTABLE"
>?
>? "Observed, VFP removes the path of the not found file name"
>? " and two different parameters return the same parameter :"
>SELECT * FROM C:\somepath\MYTABLE
>
>SELECT * FROM C:\anotherpath\MYTABLE
>
I'm not sure what you're saying here. With the following it seems to work correctly. Certainly, you would use the print command to output an error message in a real application.
ON ERROR DO ShowError WITH MESSAGE(), ERROR()
ERROR 1, "C:\InvalidPath\InvalidFileName"
ON ERROR 

PROCEDURE ShowError

  LPARAMETERS tcMessage, tnError
  ? tcMessage
  ? tnError
  RETURN 
ENDPROC 

* Prints:
* File 'C:\InvalidPath\InvalidFileName' does not exist.
* 1
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform