[Lazarus] TMaskEdit: EditMask property error
shoKwave
shokwave at gmx.net
Mon Apr 7 08:47:31 CEST 2008
zeljko schrieb:
> On Saturday 05 April 2008 22:09, wile64 wrote:
>
>> Fixed in r14766
>>
>
> I see it's fixed, but I cannot set any mask properly ?!?!?
> eg: EditMask = 99/99/2000
> -> text: 00.00.20__
> now I'm setting this value as text
> 07.04.2008
> -> av raised -> "Error setting text ....."
>
> What is proper usage of LCL TMaskEdit ?
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
Got this issue zo with the patch. It seems to be a problem with the
zeros. I change the following line:
Char_Number : Result := Ch In ['0'..'9'];
to:
Char_Number : Result := Ch In ['0'..'9', #32];
in the maskedit.pp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080407/9bc2e8ab/attachment-0007.html>
More information about the Lazarus
mailing list