RE: Please help...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat wrote:
> On 11 Jul 2001, at 22:39, echope_ at excite.com wrote:
> 
> > 
> > I have a few questions that I just would like answered so anyone that 
> > can help, please do.(Im not very learned in Euphoria...)
> 
> I wasn't born knowing Eu either, it's ok. smile
>  
> > 1,) My first question is very simple actualy and I just wanted to know 
> > if there was a command that made anything that the user type upper-case, 
> > 
> > so as in a wait_key() statement or such that you wouldn't have to 
> > specify that whatever they type could be read in lowercase or caps-lock 
> > such as:
> > keypress = wait_key()
> > if keypress = 'a' or keypress = 'A' then...
> > --Also if waiting for a word its annoying to do this,
> > if word = "word" or word = "Word" or word = "WORD" then...
> > --this is also very annoying|
> 
> Have you looked at upper() in the help files? 
> 
> keypress = wait_key()
> keypress = upper(keypress) -- convert it all to uppercase
> if equal(word,"WORD") then whatever end if
...

When I try to do this it gives me an error message:

upper has not been defined ???

Do you need to use a special include file for the upper() command?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu