1. Andrew Davis
  2. PowerBuilder
  3. Thursday, 16 January 2020 17:01 PM UTC

Hi

I am using the month control in pb2019

I want it to display 3 months - with the final month being the current one. Currently it shows 3 months but the first is the current month and the next 2 

I am sure i am missing something simple, any help as always really appreciated.

 

regards

Andrew

 

Michael Kramer Accepted Answer Pending Moderation
  1. Thursday, 16 January 2020 17:21 PM UTC
  2. PowerBuilder
  3. # 1

Hi Andrew, this code works for me:

// Mark "TODAY"
this.SetToday(Today())

// Initial display starts 2 months back (approx mid month)
this.SetSelectedDate( RelativeDate( Date(Year(Today()), Month(Today()), 01), -45) )

// Initial selection (your choice)
this.SetSelectedDate(Today())

HTH /Michael

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.