StrSplit
Previous  Next

Splits a string and returns an array of strings.
Syntax: SrtSplit (RawString As String, Separators As String) As String()
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
      gps.New1
      sentence = "$GPGGA,161229.487,3723.2475,N,12158.3416,W,1,07,1.0,9.0,M,,,,0000*18"
      words() = gps.StrSplit(sentence, ",")
      for i = 0 to ArrayLen(words())-1
            msgbox(words(i))
      next
End Sub