Get your own free workspace
View
 

Split

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

 

Split

Usage:

                Split(String, ItemNumber[, Delimiter])

 

Description:

The Split command returns an item from a string made up from multiple items seperated by a delimiter. This is useful for storing and extracting multiple values in global variables.

The String parameter is the string from which you wish to extract an item. The ItemNumber parameter specifies which item to extract. The optional Delimiter parameter allows you to change the string used to seperate the items. The default value is a comma, as shown in the example below.

Example:

                Function Main()
                        MyString = "item 1,item 2,item 3"

                        Item = Split(MyString, 2)
                        Output(Actor(), Item) // Displays item 2

                        Return()
                End Function

Comments (0)

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