Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handler
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00458265
Message ID:
00458313
Views:
16
>>Hi,
>> I tried to get nLine which in ERROR EVENT of my form. Why it always return 0 if I run it as EXE?
>>
>>Thank you
>
>ON ERROR do ERRHAND
>
>PROCEDURE errhand (merror, mess, mess1, mprog, mlineno)
>lcLastOnError=ON('ERROR')
>ON ERROR
>messagebox(trans(mlineno))
>ON ERROR &lcLastOnError
>endproc

Two points:

1. the question was about the Error Event,
which is distinct from the ON ERROR mechanism

2. you left out the proper arguments in your ON ERROR command example

It should read:

ON ERROR do ERRHAND with error(), mess(), mess(1), prog(), lineno()

Mike
Montage

"Free at last..."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform