find the length of the string without using length function?

Answer Posted / rajani_kanth

Option Explicit
Dim a,text
text="I am Rajanikanth"
text=text&"@"
a=InStr(text,"@")-1
MsgBox a

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

1786


i need to sort the data using qtp script for this how i need to write a qtp script

3216


Mention how to create a cookie using vbscript?

526


What's the difference between vbscript and vb.net?

550


How will you convert a given number to long in vbscript?

490






How to pass argument by reference to a function in vbscript?

536


How will you check that a variable is an array in vbscript?

542


What is select case statement?

601


Which in-built function related to an array joins substrings into one string in the vbscript language?

512


How will you get a subset of a array in vbscript?

586


In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

2020


How to take whole text output from screen of Bitmap Application.

1868


How to add actions in driver script to run those actions in QTP?

1516


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

535


Compare java script and vb script?

591