It works like this...
Code: Select all
Dim MyArray.s(0)
MyString.s = "This is the string to split."
MyArray() = SplitStringByChar(MyString, " .,", #True, MyArray())
If MyArray()
MyArrayLength = PeekL(MyArray()-8)
Debug MyArrayLength
EndIf
- The first one is the string to split
- The second one the chars (max 8 chars) to split on
- The third one is #True or #False. If #True, empty strings are skipped on output
- The fourth one the array. This is required to free the array before creating the new one
https://w73.nl/pb/split.zip
Enjoy...