|
COBOLTranslator generates
two files for every translated COBOL module. These files have '.txt' and '.pas'
extensions. The TXT file is a ASCI representation of the DELPHI screen
definition file, and can be saved as a DFM file.
Following is a brief
guide to building a project in DELPHI from COBOLTranslator output:
- Delete all program.txt files where files size is
0
- Open Delphi, From FILE|Open, one by one select
all .txt files, and SAVE AS filename.dfm - This will create the screen
descriptions.
- From COMPONENT|INSTALL menu install all the
- Create a new Delphi project
- Remove the UNIT created by default by DELPHI
project.
- Save the project as
c:\directory\progs\PROJECT1
- Add the following form to the project
c:\directory\ACM-INC\ACMFORM.pas
- Open this form.
- This form is currently set to fsMDIChild Form.
All your converted screens will inherit from this form. Hence if you
intend this application to be an SDI, you must change the form style (from
Object Inspector) to fsNormal.
- Add All the .pas files in the \progs directory
- From the Projects menu select Options. Go to
Directories page. Set the following
Output directory : x:\directory\exe
Search Path : x:\directory\user-inc;x:\directory\acm-inc;x:\directory\data-inc;
x:\directory\acmvcl;
- Open the form (program) ACMFORM.pas, right click
on the mouse and select "ADD TO REPOSITORY. Then you can close the form.
- From FILE|New select Forms page, and select
PSFORM - make sure the the INHERIT radio box is selected. This form is to
act as your parent form (whether the application is to be MDI or SDI). For
MDI applications you will need to overwrite the Form Style (from Object
Inspector) to fsMDIForm.
|