QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 

 Return to Index  

User Input the value of a byte 0 - 255

February 20 2013 at 5:26 PM
AlGoreIthm  (Login AlGoreIthm)
R

 


Create a program that asks the user to input the value of a byte, from 0 to 255.

Obviously the program will only allow the use of keys 0 to 9, ENTER & BACKSPACE.

here are a few guidelines:

- the input must use a cursor (blinking or non-blinking) and give the user the option to backspace

- 0 is an acceptable INPUT, but no leading zeros are allowed for any other values

- the input sequence must be strict enough to not allow '6' after '25' since the limit it '255', this also means that if '3' is the first keystroke in the sequence, the total input can only be 2 digits long, unless corrected.

Enjoy, we all need a little something to beat the winter 'blahs'...





 
 Respond to this message   
Responses

 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement