function InStr(strSearch, charSearchFor) /* InStr(strSearch, charSearchFor) : Returns the first location a substring (SearchForStr) was found in the string str. (If the character is not found, -1 is returned.) Requires use of: Mid function Len function */ { for (i=0; i < Len(strSearch); i++) { if (charSearchFor == Mid(strSearch, i, 1)) { return i; } } return -1; }
file: /Techref/language/asp/js/inStr.htm, 0KB, , updated: 2003/4/15 13:52, local time: 2024/12/19 00:02,
18.221.119.21:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/language/asp/js/inStr.htm"> language asp js inStr</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.