Click to See Complete Forum and Search --> : ASCII -> Text and visa versa
markwestcott
Jan 10th, 2000, 02:17 AM
Is there anyway that I can get VB to convert ASCII numbers to single character strings and back again? I need it for doing v. basic encryption of high scores.
Thanks
Aaron Young
Jan 10th, 2000, 02:21 AM
You can convert an ASCII value to a Character using the Chr() Function, ie.
Chr(65) would be A
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
markwestcott
Jan 10th, 2000, 03:22 AM
Thanks. And is there a way of doing it the other way round?
Aaron Young
Jan 10th, 2000, 03:39 AM
That would be the Asc() Function, ie.
Asc("A") would return 65
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
[This message has been edited by Aaron Young (edited 01-10-2000).]
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.