/ Forums / Advansys Formativ / Formativ Creator / documentation / Reply To: documentation

Support 1

I have found that DateTimePicker (on the Win32 tab of the Component Palette) or the more sophisticated RzDateTimeEdit are both preferable to using MaskEdit for entering a time value.

Here are EditMask values which restrict entry to time values:

  • Long time (eg. 11:15:59PM): “!90:00:00>LL;1;_”
  • Short time (eg. 23:15): “!90:00;1;_”

However, these masks will not prevent entry of invalid time values like “33:15” or “23:75” and I don’t believe this can be achieved with the EditMask alone. That is, you will also need to write a handler for the MaskEdit component’s OnChange or OnKeyDown/OnKeyPress event.

Advansys Support

[This message was edited by Support 3 on April 14, 2005 at 07:00 PM.]