Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Description Object
03-15-2012, 11:26 PM
Post: #1
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
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
RE: Description Object
wow..thx.
(03-16-2012 12:42 AM)ravi.gajul Wrote:  The below lines should help you retrieve Prop1 and Prop2 respectively.
Code:
msgbox myobj.item(0).name
msgbox myobj.item(1).name

Regards,
Ravi

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


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  object's description matches more than one sia sharma 9 737 10-19-2012 12:48 PM
Last Post: sia sharma
  Description.creat method silpavinod 3 394 10-11-2012 04:06 PM
Last Post: ssvali
  Descriptive Programming By giving the description in form of the string arguments sia sharma 6 852 09-12-2012 08:57 PM
Last Post: freeboynil
  object's description matches more than one sia sharma 3 546 08-30-2012 11:33 PM
Last Post: QTPScript
Sad Empty Server description SAP GUI 7.20 with QTP11 sylvester618 0 797 03-02-2012 06:26 PM
Last Post: sylvester618



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