Multi-line strings are a fantastic new addition to the Delphi language and have some interesting features that make them particularly useful. Find out about them in this video.
Multi-line strings are a fantastic new addition to the Delphi language and have some interesting features that make them particularly useful. Find out about them in this video.
What are interposer classes, and when can you use them? In this video, we do some name-space hackery to introduce behaviour to controls on a form without having to write a whole new component. Watch this video.
Accelerator Keys are a handy feature that lets you use the keyboard to quickly access a specific control on the screen. By adding an ampersand (&) before a letter in the caption of a label, you can create a shortcut key for that control. For example, if you have a label that says “&Name” and a text box next to it, you can press Alt+N to jump to the text box and enter your name. How cool is that? To learn more about how this works, watch this video.
I rarely have physical copies of programming books, but here are three Delphi books that I have. Watch on YouTube
Delph High Performance 2nd Edition on Amazon or Packt.
Obviously, DataSets, DataSources, Queries, Tables, Providers and DB Connections can go into a Datamodule, but what else should go in? Watch to find out.
Should the TDataSource go on a Form or in a DataModule? In this video, Alister attempts to answer this troubling question.
Get the new book: https://learndelphi.tv/codebetter
In this video, we will look at a technique for dependency inversion using anonymous methods. It's a bit of a hack but easy to retrofit to existing applications. We will also do some more traditional dependency injection via property injection.
A useful trick is to inspect a string in the debugger and then paste it directly back into your code. This can come in handy - want to learn more? Then watch here.
Class constructors can be a powerful tool, but they may not always behave as you expect - as I found out in this video.