ADDSTRING

Concept Link IconSee also

Concatenation of up to 10 character strings.

WebVue support - Yes.

Syntax

StrVal = ADDSTRING(string1, string2[, string3[, string4[, string5[, string6[, string7[, string8[, string9[, string10]]]]]]]]);

Return type: STR.

Argument

Range

string1, string2 etc.

The strings to be concatenated. Minimum of two, maximum of ten.

Execution

The maximum length of a string is 2047 characters. When the resulting length exceeds that limit, the string is truncated.

Example

This example concatenates 2 character strings.

'variables required:
' @TEXT01 - type TEXT
' @TEXT02 - type TEXT
' @TEXT03 - type TEXT
SUB Main()
'Declare STR variables
DIM strch1 As STR;
DIM strch2 As STR;
DIM strch3 As STR;
'Initialization
strch1="TEXT01";
strch2="TEXT02";


'Concatenate
strch3 = ADDSTRING(strch1,strch2);
PRINT("Result of ADDSTRING(strch1,strch2) = ", strch3);
END SUB
SUB AddStringProc1()
'Same function with variables
@TEXT03=ADDSTRING(@TEXT01,@TEXT02);
END SUB

For a further example, select the Example link above.