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
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?
In qtp, how you can exit for loop?
HOw to add the recovery file at runtime to the test file .
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What are the differences between quicktest professional and winrunner?
What is the new version of qtp which is recently released in the market?
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
What are the advantages of qtp?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
could any help me please, how to work on visual foxpro application using UFT
Define Canvas view of UFT?
How to call a test from another test?
What is a checkpoint? How many check points are there in qtp?
What is Distributed testing? How does UFT support it?
what is the difference between the modular framework and datadriven frame work