I want to see all the properties of agent name in login
window. I will use the script
Set a=Window("FR").WinEdit("Agent Name:").Gettoproperties( )
msgbox
but my question is how to use the msgbox if i use a it will
display only a, so anyone pls let me know how to get the
display of all the properties using GetToProperties () or
GetRoProperties (). Thanks a lot
Answers were Sorted based on User's Feedback
Answer / hemakumar.m
set a=Window("FR").WinEdit("Agent Name:")
Set oEdtobj=a.GetToProperties
Prop_Count=oEdtobj.count()
For i=0 to Prop_Count-1
PropsName=oEdtobj(i).Name
PropsValue=oEdtobj(i).Value
msgbox PropsName &" = " & PropsValue
Next
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / sreekanth chilam
Hi,
Try with the below code , you will get the solution.
set a=Window("FR").WinEdit("Agent Name:").Gettoproperties( )
Prop_Count=a.count()
For i=0 to (Prop_Count-1)
msgbox a(i)
Next
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / abc
a=Dialog("Login").WinEdit("Agent
Name:").GetROProperty("nativeclass")
Print a
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / abc
I have asked for GetRoProperties not GetRoProperty
I mean all the properties not single property
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ahfahfahdh adhadi
set a=Window("FR").WinEdit("Agent Name:")
Set oEdtobj=a.GetToProperties
Prop_Count=oEdtobj.count()
For i=0 to Prop_Count-1
PropsName=oEdtobj(i).Name
PropsValue=oEdtobj(i).Value
msgbox PropsName &" = " & PropsValue
Next
Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between testing and debugging?
What is an object repository?
How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one
How does qtp identify objects in the application?
what is the purpose of .vbs file?
Why is action split used by qtp?
There are some links on the page,count and click those links and check the text on the page displayed on clicking the link.write script for this scenario.
wt is the difference between global and action excel database in qtp?for example one action is calling another action the second action is using action excell sheet?if it is using global sheet what makes the difference?
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
how can we compare descriptive programing with a regular expression
What information do the columns in the Keyword View show for each step?
How to retrieve value (data) from notepad using QTP ?