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 |
am giving to one number u can set into that in date format.u can use any methods
Input = 124 output should be 124421 Please do not use any string functions/variables
What is Querystring collection?
. Program for sorting of numbers in vb script?
Diff between web table ,datatable and data base (QTP)
What are the advantages of vbscript?
What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
how to add the shared repository file to the script file while running the script manuall
What is the difference between VBScript and JavaScript?
what is the use of Data base check point ?
Is vbscript language a case-sensitive language and what does it mean?