SwingeyP
Member
Hello again.
I want to convert a string to a number. (The string will only ever be a number)
I have this ..
This doesn't compile but I think you can see what I am trying to do.
What's the correct way of doing it?
Regards - Paul
I want to convert a string to a number. (The string will only ever be a number)
I have this ..
Code:
Dim result As Byte
Dim char(10) As Byte
Dim i As Byte
Hseropen 9600
result = 0
For i = 1 To 10
char = LookUp("1234567890"), i
result = #char-30 'take chars hex value and subtract 30 from it.
Hserout result
Next i
End
This doesn't compile but I think you can see what I am trying to do.
What's the correct way of doing it?
Regards - Paul