Command-line syntax: gsform

The gsform tool is used at the command line to compile and import forms, convert 4fd files, extract localized strings, and keep a copy of the per file created during compilation.

The Genero Studio form definition file (4fd) can also be compiled from the operating system command line, using the tool gsform, which is located in the <Studio-install-dir>/bin directory. The gsform tool executable file should not be moved to another directory.

Use gsform if you want to:

gsform Syntax

gsform [options] file1[4fd] file2[4fd] ...

where filen is a Genero Studio form file with or without the extension being specified.

Table 1. gsform options
Option Description
-h Display help instead of the standard behavior.
-m Extract localized messages, See the Genero Business Development Language User Guide topic Localized Strings for additional information.
-V Version information
-c Convert old format 4fd files to new format. Old format <filename>4fd files are backed up in <filename>.bak, New format files are saved in <filename>4fd. If the backup fails, the conversion is aborted.
-import Import per file as Genero Studio 4fd file
-keep Keep intermediate per file that is created; do not delete.

The compilation process uses temporary per files. In case there are unexpected (internal) errors, this option avoids the temporary files deletion so that the file can be read.

Important: Form Designer and gsform don't allow compilation when per files with the same file name as 4fd files are present in the same directory.
-dbname database Provide the database name database to use for form compilation. If the 4fd files use a database, it Is strongly recommended that you provide the database name using this option to reduce computation time.
-i Ignore existing per file; overwrites it.
-M Display all compilation messages. See the Genero Business Development Lanaguage User Guide topic Compiling Programs for additional information.
-W Display warning messages. Option all turns on all messages.
-ag-templatePath Specifies which Application Generator template directory used to load the Application Generator settings (file types, properties).