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 do you create a recordset object in VBScript?
Could Anybody tell me VBScript for Check if a given number is Prime number-Don't use any Built- in Functions Boolean/int is Prime(int number).. Thanks in advance.
what is the use of Data base check point ?
How to replace junk code recorded by QTP with a mall function.
Mention what if you do not specify anything when you call a procedure?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
what types of bugs will we find out in banking projects for automation testing?
0 Answers Napier Healthcare, TCS,
Why to add checkpoint in QTP What's the purpose of checkpoints & how to add it
Explain the scope of the variables using dim, public, and private keywords respectively.
Hi, Anybody could you Please tell me How to write the script for Checking whether given number is Prime Number or not..Thanks in Advance
Mention what is the technology used by vb script?
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji