Building Programs in GUIBuilder

  1. To build a program, do one of the following:

    • On the Program menu, select Build Program.

    • On the toolbar, click the Build Program button.

  2. The Save Program As dialog appears. Enter the name of the tokenized program. If the program already exists, the "Save Program As" warning dialog is displayed, with the message "Program already exists. Delete existing file?" Select Yes to go ahead and delete the existing file, or No to enter a different program name.

  3. The complete program is assembled into a source file according to the rules described in the gb_func::gb__build_program routine.

  4. The generated source file is tokenized (compiled) using the program identified by the tokenizer parameter from the gb.ini file (usually pro5cpl.exe).

    • If any errors are detected by the tokenizer, the "Build Program Error" dialog is displayed, with the message "Compiler reported an error in line N of routine X: error-message." Click the OK button to acknowledge the message. GUIBuilder calls up the routine with the error and positions the cursor on the line with the error.

    • If no errors are detected by the tokenizer, the "GUIBuilder" dialog is displayed, with the message "Program programname built successfully." Press the OK button to acknowledge this message.