Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the main difference between function and sub-procedure?

1107


What is the use of the recordset object and which statement is used to create such an object?

1007


How many types of operators are available in the vbscript language?

1006


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)

1904


Which object provide information about a single runtime error in a vbscript?

1109


Mention when to use function procedures and what are its characteristics?

1197


where can i learn VB scripint ?

2160


how to check whether link is disabled in QTP??

6159


What is the difference between do until loop and do while loop?

1125


What are subprocedures in vbscript?

1144


how to set one column as primary key in QTP and fetch values accordingly

2361


Mention the environments where vbscript could be run?

1301


1. How do declare public variable in vb scripts?

2193


Mention what is the technology used by vb script?

1014


How to throw an error in vbscript?

1197