how to count spaces in a given string ex: "this is jagadeesh"
in QTP with simple functional script
Answer Posted / ekapop (scnyl)
Hi,
Const sMY_INFO = "this is jagadeesh"
Function GetTotalSpaceFromText(ByVal sText)
Dim iTotal
Dim asInfo
asInfo = Split(sText, " ")
iTotal = UBound(asInfo)
Erase asInfo
GetTotalSpaceFromText = iTotal
End Function
Msgbox "My Text = " & sMY_INFO & vbCrLf & _
"Total Space = " & GetTotalSpaceFromText(sMY_INFO)
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is optional step in qtp? How you can add optional step in qtp?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
what is command for executing files?
Explain the concept of how quicktest professional identifies object?
How u will do versioning in QTP?
Object repositories types, which and when to use?
If I change the object name in one action will it be updated in all the actions? Or not?
What r the different filters in defect in quality center
How many number of actions possible in qtp?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
Is it possible to call from one action to another action in qtp?
Explain in brief about the quicktest professional automation object model?
your coming from electrical backgroung..but y ur coming to software side?
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
how to prepared for first for the first interview?