1. Home
  2. Computing & Technology
  3. Delphi Programming

Zarko's Delphi Programming Blog

Format XML Data using Delphi - Properly Indent TXMLDocument XML Tags Without doNodeAutoIndent

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:

How to Override Delphi Form's Restore Operation?

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:

How to Declare Constant Records in Delphi

Friday December 18, 2009

in Delphi TIPS :: Record data types in Delphi represent a mixed set of elements. Each element is called a field; the declaration of a record type specifies a name and type for each field

As with any data type in Delphi, you can create a record type constant (a read-only "variable").

Read the full article to learn how to How to Declare a Constant Record in Delphi

Related:

Implementing "Cancel All Edits" for a Configuration-type Form in Delphi

Thursday December 17, 2009

in Delphi VCL ::
Configuration forms often have a cancel button used to revert any edits to the edit controls back to original (initial) values. Here's how to implement such a mechanism in Delphi applications.

Read the full article to learn how to Implement "Cancel All Edits" for a Configuration-type Form in Delphi

Related:

Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.