Is there a way to reference a program line?

For questions regarding programming in the EViews programming language.

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

dravenous
Posts: 33
Joined: Thu Jan 29, 2015 2:30 pm

Is there a way to reference a program line?

Postby dravenous » Wed Aug 31, 2022 1:49 pm

Hi I'm looking for something that will paste the line number in a logmsg. I've been manually doing "logmsg Line X" but would love if there's some sort of @line command I'm not aware of because if I write additional program lines obviously my manually entered "Line X" will be incorrect. Mostly for debugging code.

Thank you!
DR

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

Re: Is there a way to reference a program line?

Postby EViews Gareth » Wed Aug 31, 2022 3:26 pm

There isn't :(
Follow us on Twitter @IHSEViews

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

Re: Is there a way to reference a program line?

Postby EViews Jason » Thu Sep 08, 2022 5:50 pm

With the latest EViews 13 patch, in addition to the 'program' option to logmode.

Code: Select all

logmode program
you can add the options 'file', 'filepath' and/or 'linenum', where:

'file ' will prepend the filename of the program to the program line
'filepath' will prepend the filename and path to the program line
'linenum' will prepend the line number of the program line

For example,

Code: Select all

logmode program linenum file
will enable program line logging and include the file name and line number with each log entry.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest