Get your own free workspace
View
 

Mid

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

 

Mid

Usage:

                Mid(String, Offset, [Length])

 

Description:

The Mid command returns a section of a string, starting from any offset.

The String parameter is the string to take a section from. The Offset parameter is the position in the string to begin. The optional Length parameter is the number of characters to return. If you ignore the Length parameter, or set it to zero, the returned string will be from the specified offset to the end of the initial string.

Example:

                Function Main()
                        Result = Mid("Hello", 2, 2)
                        Output(Actor(), Result) // Displays el

                        Result = Mid("Hello", 2)
                        Output(Actor(), Result) // Displays ello

                        Return()
                End Function

Comments (0)

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