Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Description Object
#1
Solved: 2 Years, 6 Months, 1 Week, 4 Days, 4 Hours, 55 Minutes, 52 Seconds 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

~vIns~
Reply
#2
Solved: 2 Years, 6 Months, 1 Week, 4 Days, 4 Hours, 55 Minutes, 52 Seconds 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: 2 Years, 6 Months, 1 Week, 4 Days, 4 Hours, 55 Minutes, 52 Seconds ago
wow..thx.
~vIns~
Reply


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



Users browsing this thread: 1 Guest(s)