Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime field on a form
Message
From
18/03/2004 07:01:06
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00887365
Message ID:
00887437
Views:
10
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform