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)

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1549


In qtp, how you can exit for loop?

616


HOw to add the recovery file at runtime to the test file .

1635


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

689


What are the differences between quicktest professional and winrunner?

613






What is the new version of qtp which is recently released in the market?

722


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1132


What are the advantages of qtp?

666


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

3072


could any help me please, how to work on visual foxpro application using UFT

1863


Define Canvas view of UFT?

712


How to call a test from another test?

782


What is a checkpoint? How many check points are there in qtp?

616


What is Distributed testing? How does UFT support it?

685


what is the difference between the modular framework and datadriven frame work

2011