Chapter 2: Working With Project Files

Before you begin creating and using SmartWare project files, you must understand how the files are structured. This chapter identifies the various components of a project file and how these components are developed. Information about editing, compiling, executing, and debugging project files is also included. A project file, which consists of executable commands, must have both a text version and a runtime version of the file. Each must use the proper file extension. Other components, such as functions, variables, and arrays, can also be included in a project file, but they are not required to produce an executable project. For more information about these other components, refer to Chapter 3: Project Processing Features.

The executable commands can include any module command or project command. The exact syntax must be used or the command will not function properly. You can find a detailed explanation of each of the project commands in Chapter 6: Project Command Reference.

As stated in Chapter 1, the text version of a project file is non-executable and can be read and edited. The text version is created while the project file is being built and is stored as standard ASCII text. The runtime version of a project file is a compiled version of the text version and is used to execute the project. A runtime file cannot be edited, viewed, or printed by the project operator. The project file must have the correct file extension. The file extension for the text version is .PF#, where # is a number representing the module in which the project file was created. Table 2-1 identifies the correct file extension of a project file’s text version for each module.

Table 2-1

Module

Extension

Main Menu

.PF0

Spreadsheet

.PF1

Word Processor

.PF2

Database

.PF3

Communications

.PF4

   

The file extension for the runtime version is .RF#, where # is a number representing the module in which the project file was created. Table 2-2 identifies the correct file extension for the project file’s runtime version for each module.

Table 2-2

Module

Extension

Main Menu

.RF0

Spreadsheet

.RF1

Word Processor

.RF2

Database

.RF3

Communications

.RF4

   

NOTE: The correct file extension is automatically assigned when you create a project file using the Remember commands. You must provide the extension with the filename when you create a project file using any other method.

 

 

 

 

The CHM file was converted to HTML by chm2web software.