2 lines of code on 1 line

For questions regarding programming in the EViews programming language.

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

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

2 lines of code on 1 line

Postby Overtime » Tue Feb 25, 2014 12:57 am

Hi all,

I would like to compress the code I've written, and I was wondering what the
syntax is to put two lines of code on one line.

e.g. instead of:
delete imports1
delete imports2

we have something like:
delete imports1 & delete imports2

Cheers

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

Re: 2 lines of code on 1 line

Postby EViews Gareth » Tue Feb 25, 2014 12:59 am

Delete imports1 imports2

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Re: 2 lines of code on 1 line

Postby Overtime » Tue Feb 25, 2014 1:23 am

ok, bad example since I know you can do that.

What I meant was more like:

!a=15 & !b=20

instead of having to do:

!a = 15
!b = 20

ie. is there a general piece of syntax which tells the e-views to treat
what comes next as a newline

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

Re: 2 lines of code on 1 line

Postby EViews Gareth » Tue Feb 25, 2014 7:54 am

There is not.

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Re: 2 lines of code on 1 line

Postby Overtime » Tue Feb 25, 2014 8:03 am

OK - thx.

Something for the future then.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest