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
FP
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal