Converting classic Superbase programs to SIMPOL, depending upon complexity of the Superbase code, can be easy or complicated. Even if it is complicated it will be easier to convert to SIMPOL than to any other target, simply because the necessary components, such as detail blocks, are provided by SIMPOL and these are not found in other products (grids yes, but not nestable detail blocks). Also, numerous utilities are provided to convert data, forms, dialogs, menu programs and more. It is probably easier to clean up your code in SBL first than it is to try and convert it into SIMPOL and clean up the resulting mess.
It is a very good idea to be on a very recent version of Superbase when you convert. Nothing older than Superbase 2001 is recommended, since that version contains a solid implementation of the Win32 DLL support and also includes the Project Manager, which will greatly help in reworking projects. Also, a number of the conversion utilities that are shipped with SIMPOL are written in SBL and may or may not work as expected on older releases. The tools will not work if run from version 2, and may not work on a release older than 3.6!
The following are a set of general guidelines that will make converting any project to SIMPOL easier:
GOTOs except for ON ERROR GOTO. No
GOSUBs and RETURNs (use SUBs or
FUNCTIONs). Try to use local error handling as much as possible
(turn off the expected error(s), do a CLEAR ERRNO, then try the
operation and check for success). Make use of
Superbase.ErrorHandlingPush()and
Superbase.ErrorHandlingPop(). Use the global error handler for
syntax error trapping only.
BEFORE and AFTER triggers
(convert them to ongotfocus and onlostfocus events). If you have to use the
ENTER statement, only use it to initiate data-entry, don't use
it for ranges.
? @33;&27]foo.FOOBAR).
SELECT,
etc. statements like: SELECT FORM KEY s$ FILE "FOO" INDEX
Foobar.FOO, don't use the shorthand versions like: SELECT FORM
KEY s$. Also, don't use things like WHILE NOT EOF(""),
instead name the file: EOF("FOO").
This is a list of things to be aware of that will be either possible or not in SIMPOL:
On September 28th, 2009 Simpol Limited released the second quarterly update of SIMPOL Professional.
Read more...