Page 1 of 1

@insert function for strings

Posted: Wed Sep 02, 2009 4:01 pm
by cap
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

Re: @insert function for strings

Posted: Wed Sep 02, 2009 5:08 pm
by startz
I'm not sure if this is what you want, but

Code: Select all

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

Re: @insert function for strings

Posted: Wed Sep 02, 2009 5:21 pm
by EViews Gareth
Looks a bit like a bug to me, I'll investigate.

Re: @insert function for strings

Posted: Thu Sep 03, 2009 9:13 am
by cap
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