How to findout the number of spaces with in STRING For Ex :
STRING is " RAJ IS A SOFTWARE ENGINEER "
Please send me the answer
Answers were Sorted based on User's Feedback
Answer / pavaniprasad
Dim str
str="RAJ IS A SOFTWARE ENGINEER"
s=split(str," ")
msgbox ubound(s)
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / shweta
str=" RAJ IS A SOFTWARE ENGINEER "
counter=0
For i=1 to len(str)
space_num=mid(str,i,1)
if space_num=" " Then
counter=counter+1
End If
Next
msgbox counter
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / sadriddin
str=" RAJ IS A SOFTWARE ENGINEER "
NumOfSp = Len(str) - Len(replace(str, " ", ""))
Msgbox NumOfSp
| Is This Answer Correct ? | 0 Yes | 0 No |
Which scripting language used by QTP?
A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL key
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
What are the common defects found in your project? (in qtp interview)
What is the difference between gettoproperty and settoproperty?Explain with an example?
Explain types of descriptive programming?
How to run a test using quicktest professional?
How does Parameterization and Data-Driving relate to each other in QTP?
How to test results for qtp ?
What are the differences between quicktest professional (qtp) and winrunner?
what is reusable action and how the same can be implemented (process)?