Progress
Results Administration
and Development Guide
Generating Code from an Application
You can also generate code by executing the AdminProgWrite4GL feature in a feature procedure. The AdminProgWrite4GL feature generates Progress 4GL code for the report, label, or export view of a query. However, the AdminProgWrite4GL feature does not generate code for the browse and form views of a query.
Arguments to the AdminProgWrite4GL feature allow you to specify an output file for the code and to determine whether the generated code is stand-alone Progress code or dependent on Results. The following statement shows the syntax required to execute the AdminProgWrite4GL feature in a feature procedure:
The proc-name argument specifies the name of the operating system file where Results stores the generated code. The format argument must be the character g or r. The character g generates stand-alone code. See Table 3–11 for information about the stand-alone code that the AdminProgWrite4GL feature generates for different types of views. The character r generates code that is dependent on the Results application. Use the Results-dependent format to generate and run queries in Results that produce data in preparation for use with other applications that are integrated into the Results menu system (for example, business graphics applications).
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |