Page 1 of 1
concat injects spaces
Posted:
Tue Jul 20, 2010 6:41 am
by udo.killermann
Hi Bernd,
is this behaviour intended? If I call Concat("Cat","Dog""Mouse") I expect the resulting string "CatDogMouse". The OB implementation returns "Cat Dog Mouse" with spaces embedded between the strings. Now I have to use Replace to remove these spaces.
Kind regards
Udo
Re: concat injects spaces
Posted:
Tue Jul 20, 2010 12:47 pm
by berndnoetscher
udo.killermann wrote:Hi Bernd,
is this behaviour intended? If I call Concat("Cat","Dog""Mouse") I expect the resulting string "CatDogMouse". The OB implementation returns "Cat Dog Mouse" with spaces embedded between the strings. Now I have to use Replace to remove these spaces.
Kind regards
Udo
Hi Udo,
do think without spaces would be better?
Re: concat injects spaces
Posted:
Wed Jul 21, 2010 6:59 am
by udo.killermann
Bernd,
I think you should omit the spaces in the Concat function. You could add a function ConactWithSpaces if you think this behaviour is needed.
Regards
Udo
BTW: How do Perl or awk concat strings? I think they don't add spaces - but have a look yourself.
Re: concat injects spaces
Posted:
Wed Jul 21, 2010 12:43 pm
by berndnoetscher
Thanks for the ideas. Will do it for the next releases...