[fpc-pascal] char in [range]

Frank Peelo f26p at eircom.net
Mon Dec 7 15:19:47 CET 2009

On 07/12/2009 13:40, ik wrote:
> You are right, my bad.
> I wrote it
> if (not Key in ['a'..'z']) then
> Rather then
> if not (Key in ['a'..'z') then
> In lazarus under OnKeyPress.
> Now it works properly. However it seems like the not is for the "in" 
> rather then the key if it inside the pertness.

"pertness"? I would love to know what that was before babelfish got it...

(Key in ['a'..'z']) is a boolean expression. So
   not (Key in ['a'..'z'])
makes sense.

Key is a char, so what should
   not Key
mean? And when would that be in ['a'..'z']?

Hope that helps make it clearer


More information about the fpc-pascal mailing list