Hi All,
Assume that I am having 5 variable i.e. a,b,c,d,e, all are strings.
a='abc'
b='def'
c=' '
d='klm'
e=''
Now, I want it to be saved in a single string variable xtot. i.e
xtot='abc def klm'
There is all the posibilities of having any of these 5 strings to be blank except a. But in the xtot string, the gap between two string should not be greater that one space.
I know to do it with long procedure with <if> or <case>.
Is there any other way to do it.
Please suggest....
thanks and regards
Assume that I am having 5 variable i.e. a,b,c,d,e, all are strings.
a='abc'
b='def'
c=' '
d='klm'
e=''
Now, I want it to be saved in a single string variable xtot. i.e
xtot='abc def klm'
There is all the posibilities of having any of these 5 strings to be blank except a. But in the xtot string, the gap between two string should not be greater that one space.
I know to do it with long procedure with <if> or <case>.
Is there any other way to do it.
Please suggest....
thanks and regards