Quick Start: Create a project

Quickly create a project to manage and execute a Hello World application.

About this task

This quick start is intended to provide experience in creating and working with a project. It uses a simple project as its starting point, then has you add and manage the files needed to run the Hello World sample application.

Steps

  1. Select File > New > Genero > Simple Project and click OK.
    An unsaved project opens in the Projects view.
  2. Save and name the project.
  3. Expand the tree to see all default nodes in the project.
    By default, a simple project contains a single group node, which contains three child nodes: an Application node, a Databases library node, and a Library library node.
    Figure: New simple project

    project tree as seen in Projects view for a new, simple project.
  4. Right-click on the Application node and select Add Files. Navigate to the My Genero Files/samples/HelloWorld directory and select HelloSource.4gl and HelloSource.4fd.
  5. Add a new Library node to hold all forms.
    1. Right-click on the Group node and select New Library.
    2. Name the library Forms.
    3. Drag the HelloForm.4fd file and drop it on top of the Forms node.
  6. Add a dependency to the Application node for the new Forms library.
    1. Right-click on the Application node and select Advanced Properties.
    2. Click on Dependencies to display the Dependencies page. Notice that the Forms check box is not selected.
    3. Check the Forms checkbox.
      Selecting this node indicate that the application is dependent on the files in this library.
    4. De-select the Databases and Library nodes from the dependency list.
      Given that these two library nodes do not contain any files, they do not need to be identified as dependencies for the application.
    5. Click OK.
  7. Right-click the Application node and select Build.
    The application files are compiled and linked into an executable program. The compiled and executable files for the program are stored in the Target Directory specified. Check the output of the build in the Output view.
  8. Right-click the Application node and select Execute.
    The Hello World application launches.
What to do next
Having completed this quick start, you may be asking questions such as these:
  • Could I have deleted the Databases and Library library nodes?

    Yes, these nodes could have been removed. However, having these nodes exist in the tree do not cause any additional work for the project, especially once they were removed as dependencies for the application.

  • Could I have renamed the Library library node, turning it into the Forms library node?

    Yes, instead of creating a new library node, you could have simply renamed the existing library node. For this quick start, the intention was to provide the experience in creating a library node and adding a dependency, therefore you were instructed to add a new node instead of reusing the node created by default.