Hi, I thought I would post this question at the same time as delving into the PB/FF/Cheetah documentation.
How do I get a date from the dtpicker into a cheetah date field?
Many Thanks
Get it from the control by sending it a DTM_GETSYSTEMTIME message.
Then you may need to take a look at:
GetDateFormat
Not sure how it stores it in Cheetah, but if it is a text string you will need to format it the way the string is expected...otherwise it may be stored as a 64bit value which would be more efficient and you'd need to convert the SystemTime value to a FileTime.
For GetDateFormat I usually use MakDwd(MAKELANGID(%LANG_ENGLISH, %SUBLANG_ENGLISH_US), %SORT_DEFAULT), 0 for the first two values, or whatever else you may need to keep it formatted correctly for any language.
Many Thanks Roger, I seem to be progressing. I am also getting to grips with finding information about using the windows api, which is new to me. Coming from a VB background.