15.04.2018 Views

programming-for-dummies

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Database Programming Languages 79<br />

@ 3,1 SAY “<br />

======================================================”<br />

@ 4,26 SAY “Main Menu”<br />

Book I<br />

Chapter 3<br />

@ 5,1 SAY “<br />

======================================================”<br />

@ 8,26 SAY “1) Display Customer File”<br />

@ 10,26 SAY “2) Display Record”<br />

@ 12,26 SAY “3) Input Record”<br />

@ 14,26 SAY “4) Delete Record”<br />

@ 16,26 SAY “5) Print Customer File”<br />

@ 18,26 SAY “6) Exit”<br />

STORE 0 TO choice<br />

Types of<br />

Programming<br />

Languages<br />

Although the dBASE code may initially look cryptic, you can see how the<br />

dBASE language works like traditional <strong>programming</strong> languages. The SAY<br />

command simply prints in<strong>for</strong>mation on-screen much like the BASIC PRINT<br />

command or the C printf command.<br />

At one time, dBASE was so popular that competing companies released similar<br />

dBASE-like languages with names like FoxPro, dBXL, and Clipper. The original<br />

dBASE language and all of its various dialects are referred to under the<br />

generic name of xBASE.<br />

Early versions of the dBASE language were interpreted but later versions<br />

were compiled, allowing programmers to write complete database programs<br />

and sell them to others. The main difference between dBASE and languages<br />

such as C++ is that traditional <strong>programming</strong> languages can be used to create<br />

anything whereas dBASE is meant just <strong>for</strong> creating programs that need to<br />

store and retrieve data.<br />

Three popular database <strong>programming</strong> languages are<br />

✦ Clarion (www.softvelocity.com)<br />

✦ 4 th Dimension (www.4d.com)<br />

✦ Alpha Five (www.alphasoftware.com)<br />

One major drawback of database <strong>programming</strong> languages is that not as many<br />

programmers know them compared to traditional languages, like C++ and<br />

BASIC. There<strong>for</strong>e, if someone writes a custom database application with dBASE,<br />

Clarion, 4 th Dimension, or Alpha Five, nobody else can modify that program<br />

unless they also know dBASE, Clarion, 4 th Dimension, or Alpha Five.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!