Class Exercise: ASCII
Create a program to find the ASCII codes of characters and vice versa.
- Begin by designing the form.
- Use the names
txtChar, txtCode, cmdConvertToCode, cmdConvertToChar, cmdDonefor the controls on the form. - Add code to
cmdDone. - Add code to set the left button as default when txtChar receives the focus.
- Add code to set the right button as default when txtCode receives the focus.
- Determine what the error checking needs are on both sides.
- Add code for
cmdConvertToCodeand test your program. - On your own, add code for
cmdConvertToChar. - Try your program out to make sure it works.
- Raise your hand and ask your teacher to grade your assignment on screen.



| ASCII Code |
Private Sub cmdDone_Click()
' close program
Unload frmMain
End Sub
Private Sub txtChar_GotFocus() Private Sub txtCode_GotFocus() Private Sub cmdConvertToCode_Click() |
Assignment
The Code Cracker assignment is due in one week.
