SIMPOL Documentation

Creating the Application

The steps to turn this into an application of its own are quite simple really. As described in the section called “Summary”, all it really takes is to create a project, which I called sbair. I then copied all the program files from the addressbook program into the new project directory, renaming the one called addressbook.sma to sbair.sma. I also copied all the toolbar images from the addressbook\bin directory into the sbair\bin directory. Into the same directory I copied the converted database files (at this point we only need passengr.sbm and flight.sbm), and the converted and reworked form: checkin.sxf.

In terms of changes to the program code, all the suggestions made in the section called “Summary” were applied. The resulting program came up immediately and can be seen below. The copying and code changes took less than ten minutes, including compiling and fixing things that were forgotten.

Image of the CHECKIN form in the new SB Air application

Image of the CHECKIN form in the new SB Air application.

This is, of course, just the beginning. A full conversion would convert each of the forms, add navigation to the menu, add functions to support the buttons on the forms, add functions to handle constants and calculations for the tables, etc. The goal here was only to demonstrate the approach, not do a full conversion.