Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make T type field not show seconds
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00948964
Message ID:
00948965
Views:
14
This message has been marked as the solution to the initial question of the thread.
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform