Page 1 of 1
Multi-Line Programming
Posted: Thu Jan 14, 2010 1:55 pm
by fmgoto
I wonder if it is possible to write two commands in the same line. For the sake of "readability" only. Codes are getting too long. Thanks.
Re: Multi-Line Programming
Posted: Thu Jan 14, 2010 2:01 pm
by EViews Gareth
You cannot write two commands on the same line.
You can, however, write one command on two lines, by using the line continuation character " _ "
Re: Multi-Line Programming
Posted: Fri Jan 15, 2010 7:39 am
by fmgoto
That would be a nice feature for a future version! It helps a lot when you need to define multi-dimensional objects! Thanks, Fabio
PS: Gareth, it also seems that when you write multi-line commands with "_", tabs and comments should not be used after the "_" symbol. Is that right?
Re: Multi-Line Programming
Posted: Fri Jan 15, 2010 8:16 am
by EViews Gareth
Literally all the _ symbol does is tell EViews to read two lines as one. Since you cannot have comments in the middle of a line in EViews (which would be a nice feature for us to add), you cannot have comments after a _