This code don't work:
Code: Select all
Sub Main
myWord = "FOOBAR"
aWord = Split(myWord,"",Len(MyWord)-1)
msgbox aWord(0)
End Subif anyone can take a look
Code: Select all
Sub Main
myWord = "FOOBAR"
aWord = Split(myWord,"",Len(MyWord)-1)
msgbox aWord(0)
End SubBut I don't know why Split instruction not?
Code: Select all
aWord = Split(myWord,"",Len(MyWord)-1)Code: Select all
aWord = Split(myWord,"",Len(MyWord)-1)The length of an empty string is 0.Syntax:
Split (Text As String, delimiter, number)
[...]
delimiter (optional): A string of one or more characters length that is used to delimit the Text. The default is the space character.
Code: Select all
dim b() as byte
myWord = "FOOBAR"
b= myWord
msgbox chr(b(0))
msgbox chr(b(2))
Code: Select all
dim b() as byte
myWord = "FOOBAR"
b= strconv( myWord,128) 'from unicode
msgbox chr(b(0))
msgbox chr(b(1))