At the simplest, tabs are used to place code at appropriate indentation levels to identify conditional sections or loops. So, form headers and footers are not indented, blocks within forms are indented only by one tab, continuation should, in most cases, be indented a further tab stop, and code within conditional tests such as the IF/ELSE/END_IF structure should be indented again.
Since blocks may be nested to provide what the Forms Editor refers to as "Before" and "After" DML, a block may be indented by more than one tab position to take this into account. Spaces should rarely be used to adjust the indentation. But within Gembase code, spaces should be used to improve the readability of the code.
The following section defines rules we advise considering, and adopting.
There are a number of frequent, and common mistakes in writing Gembase code, most are caused by a failure to fully understand Gembase DML, in many cases the practice of cutting and pasting sements of code perpetuates these mistakes. Most will be familiar to anyone with some experience of working on existing systems.
When developing in Gembase, personal preferences will dictate which editor you use, on VMS systems the supplied editors are pretty good, we advise setting the cursor to be bound to the flow of the text, and ensuring the initial indentation of code is done with tabs. For developing on the PC, we recommend P.F.E. (Programmer's File Editor). This has been developed at Lancaster University's Computer Centre by Alan Phillips. It can be downloaded from http://www.lancs.ac.uk/people/cpaap/pfe It is free software, but please read the terms of use. For those of you developing on UNIX - get something better than vi!
Please note that this site is currently under development! Development was started on the 24th of February 1999, and will be an ongoing process. Check back regularly for updates to this site.
Sign our Guestbook. View our Guestbook |
Make your contribution on our Forum Provided as a free service by Delphi. |
View our site statistics http://www.sitemeter.com |
This page last updated on 28th February 1999.