[Lazarus] Randomize

Lv Liebrecht at grossmann-venter.com
Tue Dec 30 17:46:41 CET 2008


> I am not sure how modern Delphi behaves, but I'd say that Lazarus
>  way is correct here -- this is clearly a programmes's error.
>  OTOH, I think it would be useful to provide a separate function
>  like 'TrySetText' which whould return false instead if saising an exception.

In D3, D4 and Kylix1 ValidateEdit is only called if either the user
presses Enter in the control, or the control looses focus.

I still would like someone to test this in D7 or higher.

>
>
>  > Question 3:
>  > In the EditMask you can specify if the mask will be saved as pasrt of
>  > the data (again: what data?). For instance, if your EditMask is
>  > '000;0;_' then maskdata is not saved (the first 0 after the colon ( ;
>  > ) sets this value).
>  > I cannot really figure out what it does. I see noe effect n Text or
>  > EditText at all.
>
>
> If you mask includes non-special characters, those are displayed in
>  the editor as-is,
>  e.g. if mask is "000-00-00" and the user enters "1234567", the editor
>  would contain
>  "123-45-67". Depending on the value of the flag, the actual Text property
>  will contain either "1234567" or "123-45-67".

Yeah, that should not be so hard to implement.

Thanks,

Bart



More information about the Lazarus mailing list