AMOSi:Instr

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-0/Help_2.AMOS


Searches out the occurrences of a string INside another STRing. The result is the location of the first character in your destination string, starting from the left.


If search has been unsuccessful, you`ll get zero.


test=Instr("source string","search characters")


Print Instr("AMOS Professional","AMOS")


You can also start off the search from a specific position, using an optional start parameter.


test=Instr("source string","search characters",start)