logmode and prg line number

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

maxchen
Posts: 191
Joined: Fri Oct 10, 2008 4:03 pm

logmode and prg line number

Postby maxchen » Mon Aug 29, 2011 7:17 pm

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".

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: logmode and prg line number

Postby EViews Gareth » Tue Aug 30, 2011 7:51 am

I'm not sure what you're asking here Max.

maxchen
Posts: 191
Joined: Fri Oct 10, 2008 4:03 pm

Re: logmode and prg line number

Postby maxchen » Tue Aug 30, 2011 6:15 pm

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".

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: logmode and prg line number

Postby EViews Jason » Wed Aug 31, 2011 11:11 am

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.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests