>>>I'm using
>>>
>>>ON ERROR DO errHandler WITH ;
>>> ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( )
>>>
>>>but ERROR( ) returns 0 all the time.
>>>
>>>What am I doing wrong.
>>>
>>>Thanks
>>>
>>>Nick
>>
>>If you run the program from the Command Window the ERROR() function will return 0. But if ran from a EXE it will return the expected error code.
>
>Thanks Greg
>
>didn't know that
>but now I do.
>
>Nick
Glad to help
Greg Reichert