Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make T type field not show seconds
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00948964
Message ID:
00948965
Vues:
16
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform