Hi Paul,
In Property wfxDateTimePicker.SelectedTime( Byref wszValue As wstring ) I changed val(mid(wszValue, 3, 2)) to val(mid(wszValue, 4, 2)) in the following line 92:
'' New setting val(mid(wszValue, 4, 2)), was val(mid(wszValue, 3, 2))
pst.wMinute = val(mid(wszValue, 4, 2))
wszValue is a formatted wstring: "12:34:56" so the original: val(mid(wszValue, 3, 2)) would collect the colon and the 3 not the 3 and the 4.
Works OK now.
Hi Clive,
When I wrote the code, I based it on the premise that SelectedDate and SelectedTime properties strings would be sent to the control in YYYMMDD and HHMMSS formats. Basically, incoming strings should not have any formatting characters.
Thanks, Paul. Too many trees!
Checking the return string should have been a clue.