Micro Focus QTP (UFT) Forums
Assigning object properties to a variable using dp - 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: Assigning object properties to a variable using dp (/Thread-Assigning-object-properties-to-a-variable-using-dp)



Assigning object properties to a variable using dp - nmakkena - 03-26-2014

Hi
I am trying to assign object properties to variable using DP. below is the code am trying
Code:
googleSearchEdit="name:=q"
Browser("Creationtime:=0").Page("micclass=page").WebEdit(googleSearchEdit).highlight
Above code is working fine. But when i add one more property like index:=0 to the variable its not working

Code:
lnkInfoTab = "name:=YourInformation"&","&"index:=0"
Browser("Creationtime:=0").Page("micclass=page").Link(lnkInfoTab).Click
This time its not working. Can any help me out on this


Thanks in advance


RE: Assigning object properties to a variable using dp - kgovadav - 04-18-2014

Please try below code

Code:
lnkInfoTab = """name:=YourInformation"""&","&"""index:=0"""