Deadline
Tank
- Joined
- Aug 19, 2003
- Messages
- 1,836
- Reaction score
- 1
Ok so I am in VB in college and my professor is a total jackass and half the class is failing... anyhow I need help with an assignment... I really need to get a good grade on this or im gonna be screwed. If anyone is willing to help, thank you, Im using 6.0 btw. here are his instructions...
Create a program that uses a variable to store an integer or long value (a number) when the user clicks a command button,and then displays the value back on the screen when the user clicks a different command button.
Here is how you can proceed:
Place a textbox on the screen. Lets call it txtInput.
Place a label on the screen. Call it lblDisplay.
Place two command buttons on the screen. Call them cmdStore and cmdDisplay.
In the general declarations section of your program (in addition to the description of the program and your name), define (declare) a variable that will hold the number value from the text box (txtInput).
Do this by using the Visual Basic reserved word Dim.
In the click event of the cmdStore button, write some VB code that will take the VALue of the textbox - val(txtInput.text) - and place it in the variable using the VAL function.
In the click event of the cmdDisplay button, write some VB code that will take the value stored in the variable and place that value in the caption property of the label - lblDisplay.Caption.
Thanks in advanced guys, if you want to help me and not just give me answers, IM me PLEASE!
Create a program that uses a variable to store an integer or long value (a number) when the user clicks a command button,and then displays the value back on the screen when the user clicks a different command button.
Here is how you can proceed:
Place a textbox on the screen. Lets call it txtInput.
Place a label on the screen. Call it lblDisplay.
Place two command buttons on the screen. Call them cmdStore and cmdDisplay.
In the general declarations section of your program (in addition to the description of the program and your name), define (declare) a variable that will hold the number value from the text box (txtInput).
Do this by using the Visual Basic reserved word Dim.
In the click event of the cmdStore button, write some VB code that will take the VALue of the textbox - val(txtInput.text) - and place it in the variable using the VAL function.
In the click event of the cmdDisplay button, write some VB code that will take the value stored in the variable and place that value in the caption property of the label - lblDisplay.Caption.
Thanks in advanced guys, if you want to help me and not just give me answers, IM me PLEASE!