Hi,
1. I would like to execute multiple statements concatenated to a string in .NET.
What symbol would denote the line break or beginning of the next command? The following syntax returns an error message:
string s = "wfopen c:\mywork.wf1" + " pageselect page1 " + " equation eq1.ls a b c "
app.Run(s)
2. I wonder whether the COM automation will be supported in the next versions of Eviews?
COM automation
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Steve
- EViews Developer
- Posts: 844
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: COM automation
Because EViews COM Automation needs to be able to return a possible error message, you actually can't send in multiple commands in a single Run call.
What you can do is create an EViews program by creating a text file with the commands you want to run delineated by carriage returns, then save the text file with a PRG extension (e.g. commands.prg). Then ask EViews to run the program like this:
If you want the program to quit EViews when it is done, make the last command be "EXIT".
All Windows versions of EViews 7 and beyond will have support COM Automation.
Steve
What you can do is create an EViews program by creating a text file with the commands you want to run delineated by carriage returns, then save the text file with a PRG extension (e.g. commands.prg). Then ask EViews to run the program like this:
Code: Select all
app.Run("run c:\commands.prg")All Windows versions of EViews 7 and beyond will have support COM Automation.
Steve
Who is online
Users browsing this forum: No registered users and 2 guests
