This isn't my whole program but I have:
Code: Select all
Public Const VersionStr = "0.3.1"
Dim tBuf(10) As Byte, bCount As Byte
Dim tVar As Char
bCount = 0
Repeat
tVar = VersionStr(bCount)
Inc(bCount)
Until VersionStr(bCount) = null
Surely I should be able to set a Char variable equal to one character from a string?
I've not done this specifically that I can find, but I've just String(element) as a parameter in a function call that is expecting a Char.
What am I doing wrong? I did try typecasting directly in to the tBuf array but it seems you can't use typecasting with array elements.