Thursday, November 8, 2007

5. Provide yourself an example (not one from your instructor) of how you use a particular command thatwill help jog your memory in the future when you need that command again. You must provide a littlecode as well as a written explanation with this one.

An example that will help me out is

Dim Intnum1 As Integer
Dim intnum2 As Integer
Dim intsign As Integer

Intnum1 = (10 - 1 + 1) * Rnd() + 1
intnum2 = (10 - 1 + 1) * Rnd() + 1
intsign = (4 - 1 + 1) * Rnd() + 1

Me.lblnum1.Text = Intnum1
Me.lblnum2.Text = intnum2

This will help e out because we can know how to set for a variable and know how to randomnize numbers. And also tell the program that the first number showld show in the lblnum1.

No comments: