Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON ERROR DO what_err WITH ERROR(), ... - ERROR() = 0
Message
From
24/09/1999 11:13:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ON ERROR DO what_err WITH ERROR(), ... - ERROR() = 0
Miscellaneous
Thread ID:
00268523
Message ID:
00268523
Views:
45
In a driver program I have

ON ERROR DO what_err WITH ERROR(),MESSAGE(),PROGRAM(),LINENO(),MESSAGE(1)

BRSWX && invalid command

and in what_err I have

LPARAMETERS lnError, lcMessage, lcProgram, lnLineNo, lcCode
LOCAL laErrData
DECLARE laErrData[1]

ON ERROR *
= AERROR(laErrData)

RETURN

Problem ERROR always returns 0, laErrData[1,1] returns 16 as expected.

Works in FPW 2.6. What am I doing wrong?
Next
Reply
Map
View

Click here to load this message in the networking platform