Micro Focus QTP (UFT) Forums

Full Version: String Concatenation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.