Multi-Line Programming
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Multi-Line Programming
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.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13602
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Multi-Line Programming
You cannot write two commands on the same line.
You can, however, write one command on two lines, by using the line continuation character " _ "
You can, however, write one command on two lines, by using the line continuation character " _ "
Re: Multi-Line Programming
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?
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?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13602
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Multi-Line Programming
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 _
Who is online
Users browsing this forum: No registered users and 2 guests
