About QueryInputChar()?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
A few questions about QueryInputChar() ...

Is it case insensitive, both in pszMask and in the actual input?

Are non-alphanumerics in pszMask ignored? For example, does L"Y/N" mean only yYnN are acceptable?

Does it always *return* the uppercase version of the character that was entered?
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#2
> A few questions about QueryInputChar() ...
>
> Is it case insensitive, both in pszMask and in the actual input?
It shifts all input to upper case before comparing it to the mask.


> Are non-alphanumerics in pszMask ignored? For example, does L"Y/N"
> mean only yYnN are acceptable?
QueryInputChar will compare every character > an escape (27), *except* for /
(which is ignored).


> Does it always *return* the uppercase version of the character that was
> entered?
Yes, unless it's not an alphabetic character.

Rex Conn
JP Software