Dmitry,
Try to set textbox's Seconds property. Keep in mind that this property is ignored if the DateFormat property is set to Short or Long.
>A table has a T type field. I want to show the date and the time from this field in a textbox (readonly) but without seconds. In the Refresh method of the textbox I put the following code:
>
>
>set seconds off
>this.value = MYTABLE.MYFIELD
>set seconds on
>
>
>But by the time the form in refreshed or whatever, the "set seconds on" is in effect and the seconds are displayed in the textbox.
>
>I even tried to SET SECONDS OFF at the time when the field gets DATETIME() but it didn't help.
>
--sb--