Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Message(1) don't work???
Message
From
14/11/2001 04:20:29
 
 
To
13/11/2001 14:35:14
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00581070
Message ID:
00581357
Views:
12
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.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform