Page 1 of 1

logmode and prg line number

Posted: Mon Aug 29, 2011 7:17 pm
by maxchen
ver EViews7Patch_082511.exe

Code: Select all

logmode -hideprogline all 'work, but not see line number 'logmode debug 'can not find the log window wfcreate u 7 c(1) = @verstr 'error
the log message are as follows, but no line number is recorded
wfcreate u 7
c(1) = @verstr
Non numeric argument in "C(1) = @VERSTR".

Re: logmode and prg line number

Posted: Tue Aug 30, 2011 7:51 am
by EViews Gareth
I'm not sure what you're asking here Max.

Re: logmode and prg line number

Posted: Tue Aug 30, 2011 6:15 pm
by maxchen
hmm, I mean the line number is not show in the log, for example

4 wfcreate u 7
5 c(1) = @verstr
Non numeric argument in line 5 "C(1) = @VERSTR".

Re: logmode and prg line number

Posted: Wed Aug 31, 2011 11:11 am
by EViews Jason
The documentation is incorrect. The documentation for 'logmode' currently reads
hideprogline/-hideprogline [Hide/Do not hide] the program line number when reporting errors encountered during execution.
It should read
hideprogline/-hideprogline [Hide/Do not hide] the program line when reporting errors encountered during execution.
To elaborate on this, normally when an error is encountered in a program you will get 2 things: 1)the error and 2)the program line generating the error.

For example, if you run the program:

Code: Select all

create u 10 show x
you will get the error
X is not defined in "SHOW X".
But if you add 'logmode hideprogline' such that you have

Code: Select all

logmode hideprogline create u 10 show x
the program line is suppressed and you will get the error
X is not defined.