find the length of the string without using length function?
Answers were Sorted based on User's Feedback
Answer / rajanikanth
Option Explicit
Dim a
txt="I am Rajanikanth"
txt = txt & "@"
a = Instr(txt, "@") - 1
MsgBox a
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / prudviraj
str= "this is an interview questions"
var1= Right(str,1)
var2 = InStrRev(str,var1)
MsgBox var2
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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 |
How will you get the exponent of the given number in vbscript?
What is the use of the recordset object and which statement is used to create such an object?
write a vbscript for finding the sum of the numbers from 1- 50
If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?
hi, How will write a regular expression of date in VB scripting.
How to select a value from a list box by using Selenium web-driver?
Is VB Script Case sensitive or Case insensitive?
i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click
What are the different types of operators and their order of precedence?
Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.
How can I access an object in another frame?
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?