how to get the data from a winedit box in vb scripting and store it in a variable if data contains "_"(i.e data is TEST_1)

Answers were Sorted based on User's Feedback



how to get the data from a winedit box in vb scripting and store it in a variable if data contains &..

Answer / dinesh1433

strValue=Window().WinEdit().GetRoProperty("value")

Is This Answer Correct ?    0 Yes 0 No

how to get the data from a winedit box in vb scripting and store it in a variable if data contains &..

Answer / cnu_thatavarthi

Dim strValue
strValue = Browser().Page().WinEdit().getRoproperty("supported property Name")

Msgbox strValue

Is This Answer Correct ?    0 Yes 1 No

how to get the data from a winedit box in vb scripting and store it in a variable if data contains &..

Answer / sisira

set desc=description.create
desc("micclass").value="WinEdit"
set child_obj=Dialog(portal).childobjects(desc)
no_objects=child_obj.count
for i=0 to no_objects-1
captured_data=child_obj(i).getroproperty("text")
if instr(captured_data,"-") then
requireddata=captured_data
exit for
end if
next
msgbox "winEdit present with" &"_ "&"symbol"

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

When to use descriptive programming?

0 Answers  


actually how many hours per one day we will work on automation (qtp) in real time

1 Answers   Synechron,


How do you open adobe acrobat file in QTP and do some testing on that file ?

0 Answers  


Hi all, can anyone tell me the challenges u faced while using qtp?

2 Answers  


How we wil do data driven test using chkpts? Plz. give me complete navigation steps for this?

1 Answers  






What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.

4 Answers   NCR,


What is keyword view and Expert view in QTP?

9 Answers   Ordain Solutions,


What is operator in VB Script?

1 Answers   IBM,


I recorded a Web based Application running on JAVA and when I went to play them back a week later they didn't run. I noticed that the Browser was putting in a (Underscore and a Number) for each line so i re-recorded and noticed the Underscore line wasn't the same as what i recorded last week so any script I record today will not work next week because the browser settings or how QTP recognizes it keeps changing. This is the new line Browser("Bureau of Labor Statistics_4").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" This is the old line 'Browser("Bureau of Labor Statistics_3").Page("Bureau of Labor Statistics").JavaApplet("SurveyApplet").JavaList ("Select an Area").Select "U.S. city average" Notice the Burearu of Labor Statistics_3 adn Burearu of Labor Statistics_4. Why does it change and how do I prevent it from changing.

5 Answers  


Please give me the steps to carry out datadriven in QTP8.2

2 Answers  


Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).

10 Answers  


what is key word driven frame work how to use keyword driven frame in QTP in a project

1 Answers   AppLabs,


Categories