I could use charat but I apply a lot of math with those values and charat doesn't seem to cast right from string to my int and won't compile so I need to change a lot more than with my regex.split("",var) solution.
I tried using B4A and the empty string works as you want, but the array must be of type string.
(B4A code, of course)
B4X:
Dim Text As String = "0200"
Dim A() As String = Regex.Split("", Text)
For i = 0 To A.Length - 1
Log(i & " " & A(i))
Next
Dim B(a.Length) As Byte
For i = 0 To A.Length - 1
B(i) = A(i)
Next
flash actionscript: Splits a String object into substrings by breaking it wherever the specified delimiter parameter occurs and returns the substrings in an array. If you use an empty string ("") as a delimiter, each character in the string is placed as an element in the array.
javascript:
The split() method is used to split a string into an array of substrings, and returns the new array.
Tip: If an empty string ("") is used as the separator, the string is split between each character.
The separator string can't be blank. If you need to separate a string into its individual characters, just loop through the length of the string and convert each char into a new string: