Code Template examples saved from Code Central oblivion

 Delphi  Comments Off on Code Template examples saved from Code Central oblivion
Oct 102019

As I mentioned before, Embarcadero will turn off Code Central which will result in a wealth of Delphi code and tools vanishing from the face of the earth.

I have just saved two more entries for posterity:

  • Code Template Script examples []

    Code Template example for seeding a live template point with the clipboard contents. Also an example that modifies the ‘var’ code template allowing for initialization of the variable being declared.

    There are 2 templates included. A replacement for the var template and a new template called clippy that takes what is on the clipboard and surrounds it with a try…finally block.

    download link and

  • Code Template Basics – NewBucketList []

    Code Template for Creating Code Template Basics – Delphi2006 by Adam Markowitz. NewBucketList code template is used as the example.

    download link

both by Adam Markowitz a former Borland Employee.

The Delphi Wiki has some more live templates.

 Posted by on 2019-10-10 at 16:39

TCsvWriter added to dzlib

 Delphi, dzLib  Comments Off on TCsvWriter added to dzlib
Oct 102019

Yes, I know, there are many already existing solutions for writing a CSV file in Delphi. And some are probably better than mine (for general purpose usage), but those I looked at had too many shortcomings for my particular use case, so I wrote my own. (There might also have been some not invented here syndrome involved.)

Anyway: It’s now in my dzlib as u_dzCsvWriter and there are also unit tests for it.

Note that I have tested it only with Delphi 2007 so far (because I needed it for Delphi 2007). There might be Unicode related bugs that only surface in later versions.

 Posted by on 2019-10-10 at 11:50