Exactly, that was it!
Thanks Simon
-----Ursprüngliche Nachricht-----
Von: Simon Freidin [mailto:
[hidden email]]
Gesendet: Freitag, 2. März 2007 14:04
An: Balmer Thomas
Betreff: Re: Concatenate 2 string variables
declare strasse1 as a string first?
string strasse1 (a23).
COMPUTE Strasse1 = CONCAT (RTRIM (Strasse), Nrstring).
On 02/03/2007, at 11:20 PM, Balmer Thomas wrote:
> Hi
>
>
>
> After the transformation of a numeric variable Nr in a string ...
>
>
>
> STRING Nrstring (A3).
>
> COMPUTE Nrstring = STRING (Nr, F3).
>
> EXE.
>
>
>
> ... I tried to concatenate this new variable Nrstring (which is the
> house number) with the variable Strasse (which is the street, format
> A20) in a new variable Strasse1.
>
>
>
> COMPUTE Strasse1 = CONCAT (RTRIM (Strasse), Nrstring).
>
> EXE.
>
>
>
> I got only the new variable Nrstring, but nothing else!? Where lies my
> stupid mistake?
>
> Thanks
>
> Tom
>
>