To concatenate two strings, there is no separate function in QTP/VbScript. ‘+’ operator is used for concatenation of two strings.
For example, run the below code.
1: string1 = "String"
2: string2 = "Concatenation"
3: string3 = string1 + string2
4: msgbox string3
5: string3 = string1 + " " + string2
6: msgbox string3
Ist message would display ‘StringConcatenation’.
IInd message would display ‘String Concatenation’.
thanks for this script.
Virus Stuxnet Algorithm
welcome 🙂