Get your own free workspace
View
 

Instr

Page history last edited by Gamemaster 3 years, 5 months ago

 

Instr

Usage:

                Instr(String, Find, [From])

 

Description:

The Instr command returns the first position in a string at which the Find string is found. If the Find string is nowhere within the initial string, the value returned will be zero.

The optional From parameter allows you to only look for instances of the Find string after a certain position in the string.

Example:

                Function Main()
                        Result = Instr("Hello", "l")
                        Output(Actor(), Result) // Displays 3
                        Return()
                End Function

Comments (0)

You don't have permission to comment on this page.