Difference between revisions of "AMOSi:Instr"

From Amiga Coding
Jump to: navigation, search
(Extracted from the AMOSPro V2.00 helpfile)
m (1 revision(s))
 
(No difference)

Latest revision as of 01:51, 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)