Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Description Object
#1
Solved: 10 Years, 8 Months, 2 Weeks ago
Hi,
Is there any way to fetch the property name?

Code:
Set myObj =Description.Create
myobj("Prop1").value = "Value1"
myobj("Prop2").value = "Value2"

Using Value or Item property we can get the values.
myobj.count -> gives count
myobj.item(1) -> gives "Value2"

But how to get the property name? ie Prop1 or Prop2

Reply
#2
Solved: 10 Years, 8 Months, 2 Weeks ago
The below lines should help you retrieve Prop1 and Prop2 respectively.
Code:
msgbox myobj.item(0).name
msgbox myobj.item(1).name

Regards,
Ravi
Reply
#3
Solved: 10 Years, 8 Months, 2 Weeks ago
wow..thx.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Taking Property values in Description objet throw Excel Sheet devarapallliramana 3 2,862 03-11-2014, 10:50 PM
Last Post: supputuri
  error with msdn's description of overwrite value of CreateTextFile ?? anu05446 1 2,412 03-10-2014, 02:48 PM
Last Post: basanth27
  Description about Types of Ordinal Identifier abhijit.airforce 1 2,359 12-27-2013, 02:57 PM
Last Post: Ankesh
  WebElementobject's description matches more than one of the objects sumanth 5 3,560 10-29-2013, 03:15 PM
Last Post: Sathiya
Sad Empty Server description SAP GUI 7.20 with QTP11 sylvester618 2 4,546 09-10-2013, 06:05 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)