From Xojo Documentation


Creates a one-dimensional array from the String passed. This method is identical to String.Split, except that it treats the source as binary data.


This function is intended for use with binary data. It can be used with normal encoded string data, but may not work as expected with some Japanese multibyte encodings.

Sample Code

Dim s As String = "Adam,Aardvark,Accountant"
anArray = s.SplitBytes(",") // produces 3-element array
anArray = s.SplitBytes("") // produces array of individual characters, but should be avoided for some encodings such as Japanese

See Also

String, String.IndexOfBytes, String.LeftBytes, String.Bytes, String.MiddleBytes, String.RightBytes