Instr() Function in VB Script?

Instr: Returns the position of the first occurrence of one string within another.

SyntaxInStr([start, ]string1, string2[, compare])

Ex:
str1=”test”
str2=”t”
Msgbox Instr(1,str1,str2,vbtextcompare)

Subscribe to TestingQ.Net

To receive daily posted Interview Questions
Just enter your email address below and click 'Subscribe'

Enter your email address: