find the length of the string without using length function?
Answer Posted / cnu_thatavarthi
Option Explicit
Dim strValue,iCount, intcounter
strValue = "thatavarthi"
intcounter = 0
for icount = 1 to len(strValue)
intcounter = intcounter+1
Next
Msgbox intcounter
'Expected Value
---------------------------
---------------------------
11
---------------------------
OK
---------------------------
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the main difference between function and sub-procedure?
What is the use of the recordset object and which statement is used to create such an object?
How many types of operators are available in the vbscript language?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
Which object provide information about a single runtime error in a vbscript?
Mention when to use function procedures and what are its characteristics?
where can i learn VB scripint ?
how to check whether link is disabled in QTP??
What is the difference between do until loop and do while loop?
What are subprocedures in vbscript?
how to set one column as primary key in QTP and fetch values accordingly
Mention the environments where vbscript could be run?
1. How do declare public variable in vb scripts?
Mention what is the technology used by vb script?
How to throw an error in vbscript?