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 qtp window?
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
Tell me one scenario, the complex functionality you have automated in your project?
How do you synchronization point through DP?
How to create Reusable and Multiple Actions?
how to acess a test in RSA?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
What is smart identification in QTP?
How many lines of code in each script of QTP?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
how to explain a claims and insurance project?
What is use of object spy?
whow much strong on VB and C?
How to capture all the data of a webtable, weblist and combolist using QTP?
What is keyword driven framework?