WinFBE - 2.0.1 - wfxDateTimePicker.inc

Started by SeaVipe, December 15, 2019, 03:58:16 PM

Previous topic - Next topic

SeaVipe

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.
Clive Richey

Paul Squires

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.
Paul Squires
PlanetSquires Software

SeaVipe

#2
Thanks, Paul. Too many trees!
Checking the return string should have been a clue.
Clive Richey