About Us Products Solutions Services Contact Us
Please...
Register Here!
Login Area Superbase Europe Newsgroups

Home
Sitemap

Technical Support
Services


Professional
Services


Academic and
Educational
Services


Publishing
Services


Marketing
Services


Free Download
Services


Training Services

 

 


Services -> Superbase Technical Support Services

Maintaining Superbase Applications

Previous
Next
Line Number Basic

Although you can use line numbers to write a Superbase program, few people do it nowadays and it's considered obsolete in many respects, so we will not go into it here.

Just to show you an example of Superbase code, the following code fragment will open up a form, select the record for the person named John Smith, and will make an audible sound 5 times

10 OPEN FILE SHARE,0"PEOPLE"

20 OPEN FORM "CONTACT"

25 SELECT KEY "John Smith"

30 FOR I% = 1 to 5

40 BELL

50 NEXT I%

60 END

Although line numbers help you see where you are in the program, they are of little use and simply clog up the readability of the program. Also, using line numbers encourages the bad programming style of jumping to (GOTO) certain locations. The following code is a BAD example of using line numbers and GOTO

10 PRINT "Hello There"

20 GOTO 10

As you can imagine, this program will simply print "Hello There" on the system forever and ever, constantly jumping back to the start of the program.


Copyright © 2003 Superbase Developers plc, Cambridge, UK. All rights reserved worldwide.
   Legal Notice  Questions or comments? Contact webmaster@superbase.co.uk