Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a couple of list boxes on my form and my task is to create an encoder/translator. The idea is that I type standard text into one list box and when I click a button it displays the ASCII equivalent in the other list box. The program has to work both ways, converting/translating and back. I also need the program to encrypt the code so say A is ASCII 32 I would like say to add 4 to this figure making A = 36 that way creating basic encryption. Any type of encryption can be used but I just used this as an example. Thank you
Regards
M

You need to be looking at the Asc function. This converts a character to its ASCII equivalent.
BTW. ASCII 32 is the code for space. Uppercase A is 65 and lowercase A is 97. Also, you cannot type text into a ListBox. You use the AddItem function to add stuff to a list box. You can type into a Text box and then add the text to a ListBox with the AddItem function.
Stuart

Thank you for your interest. The above was only meant as an example albeit poor, and I have the basics but this one is above my knowledge of VB. What I have been given is the task to create an enigma type coding program but only as complex as I know how? I've been given this info:
Take a text file, encrypt it into another form.
Has to be able to de - crypt as well.
user type in source doc name to get file.
My program is to read the text file line by line converting each character as it goes.
Create an algorythm to convert each char.
Now it's just a case of the encrypting. The example given uses ascii as the crypt/sipher. I may use that or other method.
Regards
M

![]() |
window on webpage
|
progress bar not moving w...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |