String.Concat

Top  Previous  Next

 

Syntax

function String.Concat(Str1: string [, Str2: string; Strn: string): string

 

Alternative Names

ibec_Concat

 

Description

Returns a string value with all given strings linked together. If one of the given values has the NULL-state, the result is NULL.

 

Using the double pipe symbol has the same effect, but using this function can be easier, especially if the number of values is larger or when called in a loop.

 

Example

execute udsblock

as

begin

  /* this is the same as writing:

     valoueout = 'val1' || 'val2' || 'val3';

  */

  valueout = String.Concat('val1', 'val2', 'val3');

  GUI.ShowMessage(valueout);

  

  /* returns NULL */

  valueout = String.Concat('val1', null, 'val3');

  GUI.ShowMessage(valueout);

end