>>>stupid newbie<<< :-[ :-[
does any1 know how you can make a user's input non-case specific?
for example if the program only accepts "green" how can i make it to be able to recognize "GrEen"?
how do u make user input non-case specific?(newbie
Moderators:Administrator, Global Moderator
Re: how do u make user input non-case specific?(ne
Lets try this:
. . .
. . .
INPUT "Enter the code";code$
control$ = LCASE$(code$) 'change all letters to lower case
IF control$ = "green" THEN
PRINT "ok"
ELSE
PRINT "Try again"
END IF
. . .
. . .
With UCASE$ you change all letters to upper case.
. . .
. . .
INPUT "Enter the code";code$
control$ = LCASE$(code$) 'change all letters to lower case
IF control$ = "green" THEN
PRINT "ok"
ELSE
PRINT "Try again"
END IF
. . .
. . .
With UCASE$ you change all letters to upper case.