Skip to main content
guest
Join
|
Help
|
Sign In
RockyVB
Home
guest
|
Join
|
Help
|
Sign In
Wiki Home
Recent Changes
Pages and Files
Members
Home
Handy Hint Example
Handy Hints
Great Code
Good VB Resources
Instructor Resources
How to use Wikispaces
2010_S2_Phillips_Scott_HH_2
Edit
0
2
…
1
Tags
scott phillips' second handy hint
Notify
RSS
Backlinks
Source
Print
Export (PDF)
Scott Phillips's Handy Hint #2:
ASCII is is the numeric code for each character and every character on the computer.
For example...
ASCII code for "A" would be 65
ASCII code for "a" would be 97
The reverse ASCII for 100 would be "d"
The reverse ASCII for 33 would be "!"
Any number between 32 and 255 has an ASCII equivilent.
To convert a character into a number you can use the following code;
Dim
character
As String
character = Asc(txtChar.Text)
txtASCII.Text = character
To convert a number into a character you can use the following code;
Dim
ascii
As String
ascii = txtASCII.Text
txtChar.Text = Chr(ascii)
Javascript Required
You need to enable Javascript in your browser to edit pages.
help on how to format text
Turn off "Getting Started"
Home
...
Loading...
Scott Phillips's Handy Hint #2:
ASCII is is the numeric code for each character and every character on the computer.
For example...
ASCII code for "A" would be 65
ASCII code for "a" would be 97
The reverse ASCII for 100 would be "d"
The reverse ASCII for 33 would be "!"
Any number between 32 and 255 has an ASCII equivilent.
To convert a character into a number you can use the following code;
Dim character As String
character = Asc(txtChar.Text)
txtASCII.Text = character
To convert a number into a character you can use the following code;
Dim ascii As String
ascii = txtASCII.Text
txtChar.Text = Chr(ascii)