I have a string "abc defg h"
I wanted to translate each letter into the corresponding number for example 'A' as '00', 'B' as '01'
eg
'hello' --> '06 04 10 10 14'
ps would a dictionary help at all with this?
Thanks in advance
I have a string "abc defg h"
I wanted to translate each letter into the corresponding number for example 'A' as '00', 'B' as '01'
eg
'hello' --> '06 04 10 10 14'
ps would a dictionary help at all with this?
Thanks in advance
You examples do not match up. Should H be 6 or 7? This is a basic example, but it only handles letters well, spaces and punctuation you will have to determine how you want to handle:
Dim value As String = "HELLO"
For Each character In value.ToUpper()
Debug.Print((Asc(character) - 65).ToString("00"))
Next