Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Separate date and time from Datetime field
Message
 
 
To
12/07/2018 09:58:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01661124
Message ID:
01661126
Views:
42
>>Hi,
>>
>>How do you separate the date and time from the DateTime field so that each part (date and time) can be bound to a different control?
>>
>>E.g. I have a date pick control that I want to bind to the date part of the DateTime field. This one is simple.
>>And I have another control, based on VFP spin control, that I can bind to a Time. And the Time would be in the format as HH:MM. But how do I get the Time portion from the DateTime field? So that when a user changes the time via the time pick control, it updates the DateTime field?
>>
>>TIA
>
>Why don't you simply press F1?

The help - at least on the surface - does not give me the answer. I know how to get the Hour or Min or time from the DateTime field. But how do I bind this portion (hour:min) to a control so that when the user changes value in the control, the value in the time portion of the bound field changes too?

UPDATE. I should have explained better that I am trying to bind just the Time portion of the DateTime field to a control.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform