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 |
can any one tel ,using simple string a[0]=I a[1]=N a[2]=D like that it go's . . out put i need INDIA help me it's really need full ..
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
What is the Obect Repository type, we use in Automated Testing..in Real time.. Pls anybody can give the answer.. Thanks in advance...
How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open )
is there any addin for remedy user application
I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?
Can any one tell me Difference between Keyword Driven Frame work and Hybrid framework? Its Urgent.
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".
Please any on explain usage of "on error resume next","On error goto 0" with sample code....Thankyou......... when a tester is asked to execute 100 scripts in a short time..(the server will be down in another 10 min)..how he has to run those scripts?