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 Curd testing?
What is difference between Recording time object identification and Run time (Execution) time.
How can i check items sorted or not in a weblist ? Give me the script for this...
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
What do you mean by checkpoints in qtp?
How to create a standard checkpoint ?
Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter
What is the difference in the global and action sheet in qtp?
What is Cross browser testing? Does UFT support it?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
terminal services client
can the activities of test case design be automated?
How would you export a script from one pc to another in qtp?
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?