Difference between revisions of "AMOSi:Instr"
Spellcoder (talk | contribs) m (1 revision(s)) |
Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile) |
(No difference)
|
Revision as of 02:45, 17 November 2007
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)