StrSplit
Previous Top Next

Splits a string and returns an array of strings.

Syntax: SrtSplit (RawString, Separators) 

RawString - The string that will be split.

Separators - Zero or more characters that act as the separators.

If the Separators string is an empty string then all white characters will be used as the separators.

Example:

Sub Globals

            dim words(0) as string

End Sub

Sub App_Start

            sentence = "$GPGGA,161229.487,3723.2475,N,12158.3416,W,1,07,1.0,9.0,M,,,,0000*18"

            words() = StrSplit(sentence, ",")

            for i = 0 to ArrayLen(words())-1

                        msgbox(words(i))

            next

End Sub