common, namespace, concat, concatenation, string, str, scriptless, script-less, scripted, step, view, stepview

Method Zap.Common.StringConcat

Concatenates one or more instances of string. It requires at least 2 string objects

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Common.StringConcat ( 
	String String1,
	String String2,
	String String3 [Optional],
	String String4 [Optional]
)

ZAP Utility

ZAP Utility step

Zap.Com..Concat

string1

string2

string3

string4

resultString

String1

String2

String3

String4

Output Parameter

Parameters

String1

Type: String

String 1

String2

Type: String

String 2

String3 (Optional)

Type: String

String 3

String4 (Optional)

Type: String

String 4

Returns

Result of string concatenation

Example

VBScript

helloMessage = Zap.Common.StringConcat("Hello, ", "user!")
Zap.Common.ShowMessageBox helloMessage
' use optional parameters
helloMessage = Zap.Common.StringConcat("Hello, ", "user! ", "Thank you for using ", "ZAPTEST!")
Zap.Common.ShowMessageBox helloMessage

JavaScript

var helloMessage = Zap.Common.StringConcat("Hello, ", "user!");
Zap.Common.ShowMessageBox(helloMessage);
// use optional parameters
helloMessage = Zap.Common.StringConcat("Hello, ", "user! ", "Thank you for using ", "ZAPTEST!");
Zap.Common.ShowMessageBox helloMessage

Comment

Concat string and save it to variable parameter and show result in message box

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Com..Concat

Hello

user!

text

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Common..Box

Zap.Var..."text")

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552