>>Did you include the debugging information when you compiled?
>
>Ed, FWIW,
>
>I did this test:
>
x= 3
>y='c'
>on error messagebox( message(1) )
>?x=y
>on error
>
>It returns the line of code when I do the exe from the command window, but when I do it from the explorer, message(1) = "do test.exe"
>
>Whether it's a bug or by design, I can't guess since I have no clue how the program code is stored in a debug-compiled EXE.
Nancy,
if program is more sophisticated, it returns some other perivously
executed program line.
It seems that returned line is selected randomly, I cannot see
any reason why this line is returned.
I want to use this information for debugging, because
line numbers are changing when I modify my program after
releasing an exe file.
Andrus