Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime() Question
Message
From
06/08/1998 12:27:03
 
 
To
06/08/1998 12:15:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124518
Message ID:
00124524
Views:
13
>Hi All,
>
>I have a view (v_payheader) that has a datetime field (PH_date).
>
>I would like to use this field as a controlsource for a textbox.
>When a new record is added to the view, it automatically gets the current datetime() (default value from the DBC).
>
>What I don't what, is to display or allow editing of the TIME portion of the field. But I do what the ability to edit the DATE() protion.
>
>
>What can I enter in the Properties of this field in order to allow me
>to do this???
>
>TIA
>Dave

You can unbind the textbox (.Controlsource="") and fill it:
Textbox.Value=ttod(view.phdate)
When you save a record you can
Replace view.phdate With ctot(dtoc(textbox.value)+substr(ttoc(view.phdate),10))
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform