Hi!
In the help:
>>>>>
Parameters
1
If MESSAGE( ) is used in an ON ERROR routine, include this argument to return the
program source code that caused the error. If the program source code isn't available, MESSAGE(1) returns one of the following:
The entire program line if the line is macro substituted.
A command if the line contains a command without any additional clauses. A command followed by three dots (...) if the line contains a command and additional clauses.
>>>>>
When you do not include the debugging information when EXE is compiled, it will never return other than you have. When you want to use proper error reporting from client machines, you have to compile EXE with debug information. Of course, this will cause EXE file is larger and source code could be seen inside of the EXE, but you will be able to track the errors properly, for example, get correct values of message(1) and lineno() functions.
HTH.
>Folks,
>
>I haven't coded an error handler in some time, and am running into the strangest problem.
>
>Simply put, Message(1) returns what I expect when running an app from the command window, but in run-time I'm getting the command that launched the app, as in "Do Sysrun.exe".
>
>I'm baffled, and have not looked at this in a very long time. Any ideas?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.