SIMPOL Documentation

Summary

In this chapter we have built a database container, and a table to hold our data. We then built a form to allow us to perform easy data-entry. Finally, we wrapped the whole thing in some program code that creates the window, the menu and tool bars, and which can run as a standalone program and act as the basis for a much larger and more complex system. Although we may choose to do some things slightly differently in a larger or in a networked program, we now have a sound foundation on which to build.

More importantly though, by using the supplied sample application together with the appframework.sml library, it is possible to quickly build a working prototype application with data-aware forms. The only areas that must be modified are:

  • The name of the form being opened in function main()

  • The name of the data source and table being opened in method addressbookapplication.new()

  • The content of the function ab_onnewrecord() (if required – otherwise remove the call to the prepaddressbookform() from function main())

The following items should be changed as well for a long-term project:

  • The name of the addressbookapplication type should correctly reflect the application being built.

  • The prepaddressbookform() and ab_onnewrecord() functions should be replaced with appropriately named functions.

  • The helpabout() function should show the correct information, and could be replaced with a modal dialog.

Hopefully this chapter and the chapters up until now will have provided you with the tools that you need to make a fast start in the world of SIMPOL programming. Like in a good book, there is something to appreciate right at the start, but the more you investigate, the more there is to discover, if you wish to go there. Post your investigations and questions in the online forum and as a community we can go there together.