intnumber= InputBox("Type a number between 1 and 10?", "Title")
VB 6.0 - Input Boxes
Started by
k1lg0r1n
, May 22 2005 01:56 PM
#1
Posted 22 May 2005 - 01:56 PM
intnumber= InputBox("Type a number between 1 and 10?", "Title")
#2
Posted 24 May 2005 - 12:27 AM
InputBox returns a string. If Cancel is pressed, it is a zero-length string. You can test for this.
Check out http://msdn.microsof...fctinputbox.asp
If you don't want to use an InputBox, set up a frame containing a textbox (for input), a label (for the prompt) and a command button. Don't enable the command button until the contents of the text box are within the parameters you wish them to be.
Check out http://msdn.microsof...fctinputbox.asp
If you don't want to use an InputBox, set up a frame containing a textbox (for input), a label (for the prompt) and a command button. Don't enable the command button until the contents of the text box are within the parameters you wish them to be.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users