Please ensure to include your code between [code][/code] tags while asking or replying to questions.

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Description Object

03-15-2012, 11:26 PM
Post: #1
Solved: 1 Year, 2 Months, 3 Weeks, 5 Days, 2 Hours, 35 Minutes, 58 Seconds ago Description Object

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~
Find all posts by this user
Quote this message in a reply
03-16-2012, 12:42 AM
Post: #2
Solved: 1 Year, 2 Months, 3 Weeks, 5 Days, 2 Hours, 35 Minutes, 58 Seconds ago RE: Description Object
The below lines should help you retrieve Prop1 and Prop2 respectively.
Code:
msgbox myobj.item(0).name
msgbox myobj.item(1).name

Regards,
Ravi
Find all posts by this user
Quote this message in a reply
03-16-2012, 04:13 AM
Post: #3
Solved: 1 Year, 2 Months, 3 Weeks, 5 Days, 2 Hours, 35 Minutes, 58 Seconds ago RE: Description Object
wow..thx.

~vIns~
Find all posts by this user
Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)