34,333
edits
Changes
→Searching for a Substring
The Visual Basic ''Instr()'' function accepts one optional, and two mandatory parameters. The function is a little odd in that it is the first parameter which is optional (most other function always make the first parameter mandatory). The syntax for using ''Instr()'' is as follows:
'''Instr(''' [''start position''], ''string'', ''substring'' ''')'''
The parameters accepted by ''Intr()'' are as follows: