Recent

Author Topic: Replace TDBZVDateTimePicker components by TDBDateTimePicker  (Read 10717 times)

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Replace TDBZVDateTimePicker components by TDBDateTimePicker
« Reply #15 on: March 10, 2016, 12:51:15 am »
1. Perform the procedures that GetMem propos.
2 - click on each TDBZDateTimePicker and Change class and switch to TDBDateTimePick

Note: If I only procedure 1, still generating errors that TDBZVDateTimePicker class was not found.
You have to perform the procedure 2 for each component TDBZVDateTimePicker
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Replace TDBZVDateTimePicker components by TDBDateTimePicker
« Reply #16 on: March 10, 2016, 12:53:38 am »
1. Perform the procedures that GetMem propos.
2 - click on each TDBZDateTimePicker and Change class and switch to TDBDateTimePick

Note: If I only procedure 1, still generating errors that TDBZVDateTimePicker class was not found.
You have to perform the procedure 2 for each component TDBZVDateTimePicker
you need to replace the type both in pas and lfm files.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: Replace TDBZVDateTimePicker components by TDBDateTimePicker
« Reply #17 on: March 10, 2016, 01:04:32 am »
1. Perform the procedures that GetMem propos.
2 - click on each TDBZDateTimePicker and Change class and switch to TDBDateTimePick

Note: If I only procedure 1, still generating errors that TDBZVDateTimePicker class was not found.
You have to perform the procedure 2 for each component TDBZVDateTimePicker
Of course, in procedure 1 you have to replace the unit TDBZVDateTimePicker (I don't know its name, it's in your uses list) with the one for TDBDateTimePicker (DBDateTimePicker). In procedure 2 this is done automatically.

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Replace TDBZVDateTimePicker components by TDBDateTimePicker
« Reply #18 on: March 10, 2016, 03:16:57 am »
I'll wait a few more days, perhaps @Zoran, create a tool to replace these components more easily. I have several projects to upgrade.
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Replace TDBZVDateTimePicker components by TDBDateTimePicker
« Reply #19 on: March 10, 2016, 03:10:38 pm »
I'll wait a few more days, perhaps @Zoran, create a tool to replace these components more easily. I have several projects to upgrade.

Okay, I created this utility.
Here it is, attached to this post. Compile and run the application and please tell us if this solves the problem.

Note:
With this tool the conversion should run very smoothly if you don't have mixed old ZVDateTimeCtrls and new DateTimeCtrls dependencies in your project. However, if you have, you will encounter double references to DateTimeCtrls, which you should then correct manually.

Regards, Zoran.

elidorio

  • Sr. Member
  • ****
  • Posts: 295
Re: Replace TDBZVDateTimePicker components by TDBDateTimePicker
« Reply #20 on: March 13, 2016, 05:36:30 am »
Hello Zoran,
It worked perfectly for me, perform the replacement of components.
Thank you.
« Last Edit: March 13, 2016, 05:38:14 am by elidorio »
Lazarus 1.4.4 | FPC 2.6.4 | Windows / Linux Debian

luk2009

  • Jr. Member
  • **
  • Posts: 51
Re: Replace TDBZVDateTimePicker components by TDBDateTimePicker
« Reply #21 on: February 07, 2023, 04:00:05 am »
It worked perfectly for me too, thanks

 

TinyPortal © 2005-2018