Different treatment of strings in EViews 10

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

Posts: 1
Joined: Thu Nov 09, 2017 10:44 am

Different treatment of strings in EViews 10

Postby asamp » Thu Apr 26, 2018 2:54 am


I've recently upgraded from EViews 9 to EViews 10 and have noticed something funny with the treatment of strings in EViews 10 vs EViews 9. Essentially, if there is a space in the string, I now have to use quotes when referencing it, whereas previously I didn't use quotes. For example, in previous codes (written in EViews 9), I would have something like:
%path="C:\Users\your name\Documents\EViews"
cd %path

I now have to write this as:
%path="C:\Users\your name\Documents\EViews"
cd "%path"

Some of my colleagues, also using EViews 10, specify like the first statement above, rather than the second. Is there an option in EViews 10 to revert to the first option? This is problematic because I use and edit programs with colleagues, so need the programs to be consistent (plus I have several programs written in EViews 9).



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

Re: Different treatment of strings in EViews 10

Postby EViews Gareth » Thu Apr 26, 2018 5:58 am

I believe nothing changed in that regard.

Also note that your example has no spaces.
Follow us on Twitter @IHSEViews

EViews Steve
EViews Developer
Posts: 584
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Different treatment of strings in EViews 10

Postby EViews Steve » Thu Apr 26, 2018 6:15 am

I tried your first code sample and it worked fine for me. When I tried the second version that had quotes around the %path, that produced an error.

I would try hiding your EViews32.ini file and restarting EViews to see if some custom option setting was changing the behavior of your string replacement (though I have no idea what that could be). You INI file can be found by going to Options/General Options/File locations then clicking the folder button next to the "Ini File Path" text box. Once you hide this file and restart EViews, EViews will revert back to default settings on everything.


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 3 guests