Getting to Grips with the New Superbase Language
Copyright © 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Simpol Limited
All rights reserved. The programs and documentation in this book are not guaranteed to be without defect, nor are they declared to be fit for any specific purpose other than instruction in the use of the programming language SIMPOL. It is entirely possible (though not probable) that use of any sample program code in this book could reformat your hard disk, disable your computer forever, fry your dog in a microwave oven, and even cause a computer virus to infect you by touching the keyboard, though none of these things is terribly likely (after all, almost anything is possible). It is just that most things are extremely improbable.
| Revision History | ||
|---|---|---|
| Revision 0.16 | 2007-08-01 | nr |
| Correction to all wxform sample programs to use a named error parameter in the wxform.new(). | ||
| Revision 0.15 | 2007-06-12 | nr |
| Correction to a sample program in the user-defined types section. | ||
| Revision 0.14 | 2007-05-10 | nr |
| Spelling fixes plus updates of the chapter covering conversion from SBL. | ||
| Revision 0.13 | 2007-01-08 | nr |
| Modified reference to RealBasics Limited to be Simpol Limited. Added 2007 copyright. | ||
| Revision 0.12 | 2006-05-10 | nr |
| Updated the chapter about wxWidgets to include common dialogs and the grid control. Rewrote the chapter about Common Dialogs to be now based on the wxWidgets functions. | ||
| Revision 0.11 | 2006-03-07 | nr |
| Removed the chapters about window1 and form1 and added the chapter about wxWidgets. Added chapter about pre-programmed SIMPOL-language libraries. | ||
| Revision 0.10 | 2004-08-30 | nr |
| Added the chapter about moving from SBL to SIMPOL. | ||
| Revision 0.09 | 2004-04-28 | nr |
| Split the Programmer's Guide and the Reference Guide into two separate books. Added the majority of missing sections to the existing portions of the book. Added the chapters about the windows, forms, common dialogs, and message boxes. Minor fixes in other areas. | ||
| Revision 0.08 | 2003-09-04 | nr |
| Added the lock1 type, AND, OR, and XOR operators, the anyvalue type, additional narrative. | ||
| Revision 0.07 | 2003-01-13 | nr |
| Added the array type, .compress1, .decompress1, various type tags, additional narrative. | ||
| Revision 0.06 | 2002-10-02 | nr |
| Added the Superbase Micro Engine new types and wrote the content of the Variables chapter. | ||
| Revision 0.05 | 2002-09-30 | nr |
| Added the section covering the Superbase Micro Engine types. | ||
| Revision 0.04 | 2002-07-27 | nr |
| Added some more detail in the basic document and redesigned into parts. | ||
| Revision 0.03 | 2002-05-20 | nr |
| Added the section on esf1 types and reworked the smpol-types to be based on includes. | ||
| Revision 0.02 | 2002-02-27 | nr |
| Added the section on grammar and modified the book to include the initial main documentation. | ||
| Revision 0.01 | 2001-12-05 | nr |
| Initial conversion of existing SIMPOL documentation into DocBook XML format. | ||
Abstract
This book contains the basic programming documentation for the new Superbase programming language called SIMPOL. The language reference guide is a separate volume. It is intended primarily for those individuals with a programming background and is not suitable as a primer on programming for beginners.
Table of Contents
- 1. Introduction
- I. Quick Start With SIMPOL
- II. SIMPOL Language Basics
- III. Web Server Applications — CGI, ISAPI, and FastCGI for Dynamic Web Content
- IV. Using Databases
- V. Calling SIMPOL Functions as DLL Calls
- VI. Working with Sockets
- VII. User-Interface Components
- VIII. Converting From SBL
- IX. Supplied SIMPOL-Language Libraries
List of Tables
List of Examples
- 13.1. Program demonstrating the retrieval of a record via PPCS
- 14.1. Function converting a db1table to an sbme1table
- 15.1. SBL program calling SIMPOL function
- 16.1. Constants portion of the urlget program
- 16.2. Beginning of the
main()function of the urlget program - 16.3. Creating the socket connection in the urlget program
- 16.4. Beginning the TCP/IP conversation in the urlget program
- 16.5. Retrieving the header from the web server in the urlget program
- 16.6. Checking the response code in the web page header in the urlget program
- 16.7. Parsing the web page header in the urlget program
- 16.8. Retrieving the web page content in the urlget program
- 16.9. Returning the results to the user in the urlget program
- 18.1. Creating a Single wxwindow
- 18.2. Example of Creating Multiple Top-Level wxwindows
- 18.3. A Modal wxdialog
- 18.4. A Non-Modal wxdialog
- 18.5. A Modal wxdialog with Standard Buttons
- 18.6. A Modal wxdialog with Standard Buttons Using
uisyshelp.sml - 18.7. A wxmenu Example
- 18.8. Minimal Form Example
- 18.9. Form with Controls Example
- 18.10. Form with Grid Control Example
