The message I want to build has 14 separate variable values and 3 constant values that need to be combined.
I have look through the standard libraries and could not find any function that I think will work. Any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have several strings I would like to combine.
STRING1
STRING2
STRING3
STRING_RESULT
Effectively, I want to do:
STRING_RESULT := CONCAT(STRING1, STRING2);
STRING_RESULT := CONCAT(STRING_RESULT, STRING3);
The message I want to build has 14 separate variable values and 3 constant values that need to be combined.
I have look through the standard libraries and could not find any function that I think will work. Any suggestions?
StrResult : string;
str : array[0..14] of string;
i : int ;
StrResult := '';
For i := 0 to 14 do
StrResult := concat(StrResult,str [i]);
End_for
Excellent Idea. Thank You.