STRCAT

Purpose:

Concatenates two or more strings.

Syntax:

STRCAT("str1", ..., "strN")

"strN"

-

Two or more strings.

Returns:

A string.

Example:

strcat("DADiSP", " is pronounced ", "Day-Disp")

 

results in the string: "DADiSP is pronounced Day-Disp."

Example:

strcat("DADiSP", " is pronounced ", "Day-Disp")

 

W1: 1..0.5..6.5

strcat("The max of Window 1 is ", strnum(max(W1)))

 

displays : The max value of Window 1 is 6.5 on the status line.

Example:

message(strcat("The max of Window 1 is ", strnum(max(W1))))

 

displays a pop-up message.

Remarks:

The + operator also combines strings. For example:

 

"String 1" + " String 2"

 

is equivalent to:

 

strcat("String1", " String2")

 

and yields:

 

"String1 String2"

 

The += operator appends a string to an existing string:

 

s1 = "String 1";

s1 += " String2";

 

s1 == "String1 String2"

 

See SPRINTF for more flexible string formatting.

See Also:

SPRINTF

STRCHAR, STRCHARS

STREXTRACT

STRFIND

STRNUM