How to skip part of the program?

For questions regarding programming in the EViews programming language.

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

Liu
Posts: 90
Joined: Tue Jun 08, 2010 6:22 am

How to skip part of the program?

Postby Liu » Tue Jan 04, 2011 8:23 am

Hi.
I just wonder if there is an unconditional GO TO type of command that allows the program to run from a certain line.

The reason is that, suppose I have a thousand lines in my program, and I want to run only from line 200 to 300.
I can "comment selection" from 1 to line 199 and from 301 to the end. But as the entire program is long, it becomes difficult.
So is there a command that runs only a block of the entire program?

Thank you in advance.
Liu.

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

Re: How to skip part of the program?

Postby EViews Gareth » Tue Jan 04, 2011 8:57 am

Unfortunately not. You'd have to either use if then endif statements, or comments, or just copy and paste that part to another program.

Liu
Posts: 90
Joined: Tue Jun 08, 2010 6:22 am

Re: How to skip part of the program?

Postby Liu » Wed Jan 05, 2011 4:04 pm

Thanks for your answer!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests