Page 1 of 1

String in String

Posted: Fri Jul 15, 2016 7:08 am
by stefanp
Hey,

I was wondering if it is possible to use a string do define another string. I thought of something like this:

Code: Select all

string a="1 2" string b="3 4" string c="{%a}"+"{%b}"
However, it obviously does not work.

Re: String in String

Posted: Fri Jul 15, 2016 7:15 am
by EViews Gareth
Remove the braces

Re: String in String

Posted: Mon Jul 18, 2016 12:59 am
by stefanp
As far as I see it, the resulting string is

%a%b

Whereas I need
"1 2 3 4"

Re: String in String

Posted: Mon Jul 18, 2016 8:13 am
by EViews Gareth

Code: Select all

string c = %a + %b