>>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