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 14:52, local time: 2025/4/1 02:36,
3.144.253.164:LOG IN
|
©2025 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://techref.massmind.org/Techref/language/asp/js/inStr.htm"> language asp js inStr</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.