cleandfm


What is cleandfm ?

cleandfm is a Delphi console program that strips out all properties that do not translate between Delphi (5) and Kylix from dfm form files.

It can also be used to strip right down to Delphi version 1 properties.

Why Bother ?

Because the IDE will complain about non-existent or incorrect properties, colors will not translate properly, and compiled binaries will throw exceptions, if certain are not stripped out or modified when development moves between Delphi and Kylix.

Advantages ?

It's much quicker than opening a large number of forms manually each time development switches OSes.

Usage

      cleandfm [-delimage] [-OS] [-total] [directory path]
          Target OS = win or lin
          if OS is absent, it means clean out both Windows and Linux problem properties
          delimage = delete all images from dfm files (use with caution !)
          total = strip out all but D1 properties (use with caution !)

Example:

    >cleandfm c:\temp3
will remove or change difficult properties in all the dfm files in c:\temp3, and ensure that dfm files are referenced as {$R *.dfm} in their corresponding pas files.

Requirements

Delphi or Kylix.

Download


Mat Ballard
25 June 2001