Micro Focus QTP (UFT) Forums
String Concatenation - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: String Concatenation (/Thread-String-Concatenation)



String Concatenation - send2aarti - 08-26-2010

Hi All,

I'm using this line of code in my script to check if object exists or not.

Actual Code:
Code:
If [b].WebTable[/b](""&V_Object_Prop_1&":="&V_Object_Prop_1_Value&"",""&V_Object_Prop_2&":="&V_Object_Prop_2_Value&"" ).exist(0) Then

V_Object_Prop_1, V_Object_Prop_1_Value, V_Object_Prop_2, V_Object_Prop_2_Value are variables.

Instead of having .WebTable thing, I want to use another variable

V_Object_Type = 'WebTable'
V_Object_Type = "." &V_Object_Type.

I would really appreciate if you could please help me asasp with concatenation of this new variable with the rest of the string.

Thanks in advance.