Recent

Author Topic: TCalendar Assign a Date  (Read 481 times)

eldonfsr

  • Hero Member
  • *****
  • Posts: 574
TCalendar Assign a Date
« on: March 06, 2026, 03:42:15 pm »
Hi i tried to change Tcalendar date to day before current date

    DTPModifiedDate.DateTime:= Date-1;
but show me current date not a day before to day?

how i can assign date to tcalendar...

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: TCalendar Assign a Date
« Reply #1 on: March 06, 2026, 04:19:31 pm »
It is working for me. Which Lazarus/FPC version? Which operating system/widgetset?

eldonfsr

  • Hero Member
  • *****
  • Posts: 574
Re: TCalendar Assign a Date
« Reply #2 on: March 06, 2026, 04:35:55 pm »
windows 64 and lazarus 4.4

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: TCalendar Assign a Date
« Reply #3 on: March 06, 2026, 04:47:53 pm »
Working fine with Laz 4.4, too.

What are you doing, when you try to change the calendar's date?

Are you sure that your code is called? Click in the left sidebar of the editor ("gutter") at the height of your line "DTPModifiedData.DateTime := Date-1" to create a breakpoint (the line will have a red background then) and run your code. The application should stop at the breakpoint line when you want to change the date. (Click on the red bullet of the breakpoint again to remove the breakpoint afterwards.)

eldonfsr

  • Hero Member
  • *****
  • Posts: 574
Re: TCalendar Assign a Date
« Reply #4 on: March 06, 2026, 05:04:10 pm »
I found my mistake yuo rigth 

 

TinyPortal © 2005-2018