Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Mustapha Bihmouten
  Where is Mustapha Bihmouten?
 Casablanca
 Morocco
 Mustapha Bihmouten
 To: Joseph G. Njoroge
  Where is Joseph G. Njoroge?
 Nairobi
 Kenya
 Joseph G. Njoroge
 Tags
Subject: RE: DATE & Time Picker
Thread ID: 143262 Message ID: 143269 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Active X Controls & OLE Automation
Date: Monday, August 27, 2007 11:53:39 AM         
   


> Dear Experts,
> Am having a problem saving the value to the table from Date picker control. Please assist me with a code on how to save date to a field called invdate returned from olecontrol class mscomctl2.dtpicker2 class.
> Best regards,
> Joseph

Hello Joseph
You can access DatePicker value trough 5 properties :
.day .month .year .Hour .minute and .second
You can see this properties in the window property in the tab 'All properties'

Something like this :
with thisform.olecontrol
   m.ldMyDate = ctod( str( .day, 2) + '/' + str( .month, 2) + '/' + str( .year, 4))
endwith


Hope it helps

Mustapha Bihmouten

ENTIRE THREAD

DATE & Time Picker Posted by Joseph G. Njoroge @ 8/27/2007 11:12:45 AM
RE: DATE & Time Picker Posted by Cetin Basoz @ 8/27/2007 11:42:25 AM
RE: DATE & Time Picker Posted by Mustapha Bihmouten @ 8/27/2007 11:53:39 AM
RE: DATE & Time Picker Posted by Cetin Basoz @ 8/27/2007 12:01:07 PM
RE: DATE & Time Picker Posted by Mustapha Bihmouten @ 8/27/2007 12:16:18 PM