PlanetSquires Forums

Support Forums => PlanetSquires Software => Topic started by: SeaVipe on December 15, 2019, 03:58:16 PM

Title: WinFBE - 2.0.1 - wfxDateTimePicker.inc
Post by: SeaVipe on December 15, 2019, 03:58:16 PM
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.
Title: Re: WinFBE - 2.0.1 - wfxDateTimePicker.inc
Post by: Paul Squires on December 16, 2019, 09:05:13 AM
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.
Title: Re: WinFBE - 2.0.1 - wfxDateTimePicker.inc
Post by: SeaVipe on December 16, 2019, 01:19:14 PM
Thanks, Paul. Too many trees!
Checking the return string should have been a clue.