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
How do we analyze the checkpoint results?
What are the types of object repositories? Which one is you using?
what is clean sweep?
How can you pass value one action to another action?
What is TOM in QTP?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
Describe function procedure in vbscript.
What is the difference between analog and low level recording?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
What is the difference between the keyword view and expert view?
How are actions and functions different in QTP?
How to get the particular property value?
Explain the benefits of quick test pro(qtp)?
What is an object repository?
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.