String Functions

How To Store Sepeated Strings With Spaces Store Two Seperated Variables

Ex: Siva Rama

Here Only Store Siva Rama

Message(‘Siva’ + ’ ’ + ‘Rama’);

If you mean you want to combine the content of two different text varaibles/fields into one variable/field you use:

Var1 := ‘Siva’;
Var2 := ‘Rama’;
Var3 := Var1 + ’ ’ + Var2;

Variable 3 must be big enough to store the complete result, meaning length of Var3 must be at least length of Var1 + Length of Var2 + 1 (for the space).

If you mean it other way round to split the content of one variable into two variables you could use the following code:

Var1 := ‘Siva Rama’;
IF STRPOS(Var1,’ ‘) > 0 THEN BEGIN
Var2 := COPYSTR(Var1,1,STRPOS(Var1,’ ‘)-1);
Var3 := COPYSTR(Var1,STRPOS(Var1,’ ')+1);
END ELSE BEGIN
Var2 := Var1;
Var3 := ‘’;
END;