BCS Tidy Format Uses Statements

The BCS Tidy project is an ongoing effort to develop a source code restructuring application.  This particular utility sorts and reformats uses statements.

The unsorted uses statement is shown below.

uses frm001u, Graphics, SHDocVw, System.Classes, System.Types,
  System.IOUtils,
  Vcl.Buttons, Vcl.Controls, Vcl.ComCtrls, Vcl.DBCtrls, Vcl.DBGrids,
  Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Forms, Vcl.Menus, Vcl.StdCtrls, SysUtils,
  Winapi.ActiveX, Winapi.ShellAPI, Winapi.Windows, Winapi.Messages;

When the application is invoked the output uses statement appears below.

uses frm001u, Graphics, SHDocVw, System.Classes, System.IOUtils, System.Types, 
  SysUtils,Vcl.Buttons, Vcl.ComCtrls, Vcl.Controls, Vcl.DBCtrls, Vcl.DBGrids, 
  Vcl.Dialogs,Vcl.ExtCtrls, Vcl.Forms, Vcl.Menus, Vcl.StdCtrls, Winapi.ActiveX, 
  Winapi.Messages,Winapi.ShellAPI, Winapi.Windows;

This utility can be used for any Delphi source code uses statement.

A 32-bit executable program may be downloaded by clicking here.
A 64-bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply