Click to See Complete Forum and Search --> : VBScript to JScript


gav_will
November 20th, 2002, 10:44 AM
Hi all, can anybody help me with this...

there is a function in VBScript called InStr I can not get it to work in JScript. I'm not sure if I have to import a particular namespace or if you just simply can not use it.

Thanks

chanti
November 27th, 2002, 02:59 AM
Hi,

The Jscript equivalent of instr is indexOf method of the String object.

Regards,
Chanti.