StrCat

Concatenates two or more strings.

Syntax:

StrCat (string1, string2[, ..., stringN])

Parameters:

(s) string1, etc. at least two strings you want to concatenate.

Returns:

(s)  concatenation of the entire list of input strings.

 

Use this command to stick character strings together, or to format display messages. Although the substitution feature of the WIL (putting percent signs on both side of a variable name) is a little quicker and easier than the StrCat function, substitution should only be used for simple, short cases. Use StrCat when concatenating large strings.

Note: The ':' string concatenation operator can also concatenate two strings (or values which can be converted to strings).  For example:

    Message("Windows version", WinVersion(1) : "." : WinVersion(0))

 

StrCat allows a maximum of 1024 parameters.

Example:


user = AskLine("Login", "Your Name:", "", 0)
msg = StrCat("Hi, ", user)
Message("Login", msg)
; note that this is the same as the second line above:
msg = "Hi, %user%"
See Also:

StrInsert, StrFill, StrFix, StrOverlay, StrTrim