Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date only format
Message
From
07/04/2003 15:37:43
 
 
To
07/04/2003 15:35:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00774834
Message ID:
00774874
Views:
15
Yep, that's basically what I am going to do. I can't belive there is no way to set a text box to only display/edit the date portion of a date time field. I guess cause VFP has a date type they never thought this was needed.

>I doubt you can do it directly. You can put code in the refresh to:
>
This.Value = TTOD(Table.field)
>and then in the valid, or wherever works best for you,
>
>Local llOk
>llOk = .T.
>IF !EMPTY(DTOC(this.Value))   && valid date?
>   IF this.Value <> TTOD(table.field)   && changed?
>      replace table.field WITH DTOT(this.Value)
>   Endif
>Else
>   llOk = .F.
>   MessageBox('Invalid date')
>ENDIF
>
>Return llOk
>
>
>>Does anyone know if it is possible to limit a textbox to only display and allow editing of the date portion of a datatime field?
>>
>>Thanks, BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform