Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime field on a form
Message
De
18/03/2004 07:01:06
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00887365
Message ID:
00887437
Vues:
11
Hi Gustavo!

>Hi guys!
>I'm trying to figure out how to show just the date portion of a datetime field on a form (what properties do I have to set up to strip out the time portion?). It has to be editable also (just the date portion).
>Any quick help?
>Thank you
>Gustavo Schweitzer

Try this code in your TextBox's Init method:
this.InputMask		= []
this.Format		= [D]
this.StrictDateEntry	= 0
this.Width		= 66
this.NullDisplay	= [  /  /]

IF  EMPTY(this.ControlSource);
AND TYPE([this.Value]) <> [D]
    this.Value		= {}
ENDIF
I hope this help you!
Bye!
Erick
Força Sempre!
Strength Always!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform