TLEQHOFU ZIKGXUI ZIT SOSN YOTSRL
O EQDT QEKGLL QF TDHZN LHQET
ZKTDWSTR QFR TBHSGRTR
STYZ Q WXL LZGH OF OZL HSQET
Ok, now that I have your attention, today we are going to be extending our understanding of arrays, variables and keyboard events by working on a separate assignment which allows you to create encrypted messages (secret codes, that is). Here is what you need to do before I hand you out the actual code sheets:
A) create a project and name it "Crypto" plus your first name and last Initial
B) add to your form a label and name the label "secretCode"
C) add a textbox, name it "wordsGoHere" and set its visibility to false
D) click on the "F7" key to get into your code, and outside of any control, type in the following code:
Dim whichKey As Integer
Dim whichLetter As String
Dim allTheWords As String
E) get into the "Form Load" part of your code, and add this code:
'set default as first element in the array
whichKey = 0
'set the letter that is going
'into the label as the first letter in the array
whichLetter = CodeKeys(whichKey)
F) Once you're done with that, I will hand out the rest of the code you will need to begin completing this assignment.
When you're done with this assignment, you will need to upload it so that I can see how well you've done. After that, feel free to work on your projects!
cheers,
Mr. L
Sunday, October 5, 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment