Monday December 28, 2009
in Delphi DB :: 
When creating database applications in Win32 Delphi you might find the multicast idea useful - to have more than one procedure execute when the OnAfterScroll event fires for the TDataset descendant, for example. The "TMultiDsEvent" class enables you to add multicast event handlers feature TDataSet and TField descendants.
Read the full article to learn how to Implement MultiCast Events for Win32 Delphi's TDataset and TField descendants.
Related:
Thursday December 24, 2009
in Delphi TIPS :: Delphi does not provide any "ready made" RTL function to test if a given directory (folder) is empty, i.e. contains no files or sub-folders. The IsDirectoryEmpty function provides the answer.
Read the full article to learn how to check if a directory is empty
Related:
Tuesday December 22, 2009
in TXmlDocument :: When using the TXMLDocument to create XML documents you might receive a nasty EOleException: This operation can not be performed with a Node of type PCDATA.
If you want the resulting XML to look "pretty" - so that each element node appears on its own line, indented appropriately to reflect its nesting in the node hierarchy, you might be adding the doNodeAutoIndent flag in the Options property of the TXMLDocument instance.
Read the full article to learn how to Fix the "This operation can not be performed with a Node of type PCDATA" when using doNodeAutoIndent
Related:
Monday December 21, 2009
in Delphi TIPS :: The WM_SYSCOMAND can be used to trap the restore window operation. When the form is maximized the "Maximize" button changes its look and operation. Clicking the restore button restores the window to its previous (normal, before it was maximized) position and size. By overriding (changing) the default "restore" action, you can for example, create a Delphi form that can be only mimimized or maximized.
Read the full article to learn How to Override Delphi Form's Restore Operation?
Related: