Is there a way to get rid of the unattractive streaks while inputting text? Also, is there a way to use ink two times on one printed line so that I can have more than one color in a single line?
Edit: Also want it so that the program only accepts real integers instead of numbers like 22.3. Tips?
Edit 2: Found out that I can add another variable selectionReal and do selection# - selectionReal and use the result to determine if the value returned is greater than 0, indicating if partial numbers were entered. Bold are the new additions:
SET TEXT FONT "Console" : SET TEXT SIZE 15
Input "Select a number between 1 and 100: ", selection$
selection# = VAL(selection$)
selectionReal = selection#
repeat
if selection# < 1 OR selection# > 100
OR (selection# - selectionReal) > 0
Print : Ink RGB(255,100,65),1
Print "'",selection$,"'"," is an Invalid selection." : Ink RGB(255,255,255),1
Input "Select a number between 1 and 100: ", selection$
selection# = VAL(selection$)
endif
until selection# > 0 and selection# < 101
AND selectionReal = 0
selectionReal = selection#
print "You chose number ",selection#
print
print "Press any key to close the program..."
wait key
SET TEXT FONT "Console" : SET TEXT SIZE 15
Input "Select a number between 1 and 100: ", selection$
selection = VAL(selection$)
repeat
if selection < 1 OR selection > 100
Print : Ink RGB(255,100,65),1
Print "'",selection$,"'"," is an Invalid selection." : Ink RGB(255,255,255),1
Input "Select a number between 1 and 100: ", selection$
selection = VAL(selection$)
endif
until selection > 0 and selection < 101
print "You chose number ",selection
print
print "Press any key to close the program..."
wait key
[b]