PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: WinFBE - 2.0.1 - wfxDateTimePicker.inc  (Read 294 times)

SeaVipe

  • Senior Member
  • ***
  • Posts: 364
  • Windows 10
WinFBE - 2.0.1 - wfxDateTimePicker.inc
« on: December 15, 2019, 03:28: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:
Code: [Select]
'' 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.
Logged
Clive Richey
*“You Either Have To Be Part Of The Solution, Or You’re Going To Be Part The Problem.” Eldridge Cleaver.
#StaySafe, Always  Keep A Safe #SocialDistance, #WashYourHands Often and please, #StayHome!

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9287
  • Windows 10
    • PlanetSquires Software
Re: WinFBE - 2.0.1 - wfxDateTimePicker.inc
« Reply #1 on: December 16, 2019, 08:35: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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

  • Senior Member
  • ***
  • Posts: 364
  • Windows 10
Re: WinFBE - 2.0.1 - wfxDateTimePicker.inc
« Reply #2 on: December 16, 2019, 12:49:14 PM »

Thanks, Paul. Too many trees!
Checking the return string should have been a clue.
« Last Edit: December 16, 2019, 12:58:24 PM by SeaVipe »
Logged
Clive Richey
*“You Either Have To Be Part Of The Solution, Or You’re Going To Be Part The Problem.” Eldridge Cleaver.
#StaySafe, Always  Keep A Safe #SocialDistance, #WashYourHands Often and please, #StayHome!