Forum Discussion
Colin_McCrae
11 years agoCommunity Hero
Remember, this is using VBScript ...
So ...
http://msdn.microsoft.com/en-us/library/wybb344c.aspx
instr returns the start point where one string occurs within another (so finding "ghi" within "abcdefghijklm" would return 7. I know "ghi" is 3 characters long (using "len" in VBScript).
So now I know how long it is and where it starts I can do what I need to do with it.
Extract it, replace it, report the start point .... or whatever.
You'll need to work out the Jscript equivalents for instr & len. I don't know Jscript so can't help you there I'm afraid.
So ...
http://msdn.microsoft.com/en-us/library/wybb344c.aspx
instr returns the start point where one string occurs within another (so finding "ghi" within "abcdefghijklm" would return 7. I know "ghi" is 3 characters long (using "len" in VBScript).
So now I know how long it is and where it starts I can do what I need to do with it.
Extract it, replace it, report the start point .... or whatever.
You'll need to work out the Jscript equivalents for instr & len. I don't know Jscript so can't help you there I'm afraid.