@insert function for strings

For questions regarding programming in the EViews programming language.

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

cap
Posts: 55
Joined: Fri Oct 17, 2008 11:47 am

@insert function for strings

Postby cap » Wed Sep 02, 2009 4:01 pm

Hello,

I am trying to use the @insert function, and it seems to generate errors in even the simplest attempt at using it.


For example, if I have the line:

%mystr = @insert("helo","l",3)


then I get the error message %MYSTR is not defined or is an illegal command


How should I be using this function then?


Thanks in advance,
-cap

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: @insert function for strings

Postby startz » Wed Sep 02, 2009 5:08 pm

I'm not sure if this is what you want, but

Code: Select all

alpha mystr = @insert("helo","l",3)
works

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

Re: @insert function for strings

Postby EViews Gareth » Wed Sep 02, 2009 5:21 pm

Looks a bit like a bug to me, I'll investigate.

cap
Posts: 55
Joined: Fri Oct 17, 2008 11:47 am

Re: @insert function for strings

Postby cap » Thu Sep 03, 2009 9:13 am

Thanks startz, that followed up with @elem() does allow me to get the particular string I want.

It would still be nice to see if the original @insert function could be made to work though (thanks Gareth).



-cap


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests