Does anyone know how to convert ascii numbers into letters. I'm having trouble because what might be 152 could also be read as 15 and 2, or 1 and 52 etc.
Printable View
Does anyone know how to convert ascii numbers into letters. I'm having trouble because what might be 152 could also be read as 15 and 2, or 1 and 52 etc.
I don't understand what you need.... but the CHR$() might be what you're looking for.
I mean if I have a txt file with ascii numbers in I want to be able to convert the numbers into their characters.
VB Code:
Debug.Print Chr$(64) 'This will print "@" in the Immediate window. (without the quotation marks)
What I mean is if I had a txt file with "1635274658365857" in it how could I change them into characters, because vb could interpret what should be 163 as 16 and 3.
Oh.... that's another problem. You should not save them that way in the text file. There's not viable way to do that. You may try to interpret if it's a possible number or not: "256" could only be read as "25" & "6", but if you have more numbers in its trail.... I would say it's quite impossible.
If you want to save them all together, save them as an octets (lie the IPs). Instead of this 1635274658365857 save this in the text file: 016035002074065083065008057
This would lead you to the numbers 16, 35, 2, 74, 65, 83, 65, 8, 57....
see the difference?
On the subject of txt files do you know how to search for 1 string in a txt file (to enable a pause function when doing large operations on strings on txt files). If I could do this I could put the string currently being read into another txt file and search for that string next time I start the App.
what?
use the alex bunting caertified give it all youv got ascii generator :D:D:D
enjoy :)
the Instr() Function searches for a string with in a string
and as mentioned above you should use a denoter of some kind to keep your numbers in check and then use the CHR() function to change them into their ASCII Characters