Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime() Question
Message
From
06/08/1998 17:07:02
 
 
To
06/08/1998 12:27:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124518
Message ID:
00124612
Views:
14
>>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))

Thanks Ed...
I wase hping to do it without unbinding the field... I guess I knew in the back of my mind (Beleive me its pretty far back!) <g> that I's have to go this route.

Thanks again

Dave
Best
Dave
Previous
Reply
Map
View

Click here to load this message in the networking platform