Clipper (programming language)


Clipper is an xBase compiler that implements a variant of the xBase computer programming language. It is used to create
or extend software programs that originally operated primarily under MS-DOS. Although it is a powerful general-purpose programming
language, it was primarily used to create database/business programs.
One major dBase feature not implemented in Clipper is the dot-prompt interactive command set, which was an important part of the original dBase implementation.
Clipper, from Nantucket Corp and later Computer Associates, started out as a native code compiler for dBase III databases, and later evolved.

History

Clipper was created by Nantucket Corporation, a company that was started in 1984 by Barry ReBell and Brian Russell ;
Larry Heimendinger was Nantucket's president. In 1992, the company was sold to Computer Associates for 190 million dollars and the product was renamed to CA-Clipper.
Clipper was created as a replacement programming language for Ashton Tate's dBASE III, a very popular database language at the time. The advantage of Clipper over dBASE was that it could be compiled and executed under MS-DOS as a standalone application. In the years between 1985 and 1992, millions of Clipper applications were built, typically for small businesses dealing with databases concerning many aspects of client management and inventory management. For many smaller businesses, having a Clipper application designed to their specific needs was their first experience with software development. Also a lot of applications for banking and insurance companies were developed, here especially in those cases where the application was considered too small to be developed and run on traditional mainframes. In these environments Clipper also served as a front end for existing mainframe applications.
As the product matured, it remained a DOS tool for many years, but added elements of the C programming language and Pascal programming language, as well as OOP, and the code-block data-type, to become far more powerful than the original. Nantucket's Aspen project later matured into the Windows native-code CA-Visual Objects compiler.

Market penetration

Not only did Nantucket sell to Western developers, by the end of 1991 the New York Times reported the company's success in "painstakingly convincing Soviet software developers that buying is preferable to pirating" and it being"unusual in that 2,000 legal copies have been sold in the Soviet Union".

Decline

Despite these efforts in the early nineties under its new ownership, Clipper proved to be unable to make a smooth transition from the MS-DOS to the Microsoft Windows era. As a result, almost no new commercial applications were written in Clipper after 1995. By then, the "classically trained programmer" commonly used strong typing, compared to "variables and functions.. not declared as a certain type in the original dBase language."
Four of the more important languages that took over from Clipper were Visual Basic, Microsoft Access, Delphi and Powerbuilder; they have data typing. Some existing Clipper applications continued in use for ten or fifteen years, requiring regular maintenance, but around 2015 the number of Clipper applications that were still used commercially on a daily basis was very small.
A factor in Clipper's decline was also due in part to issues with the Clipper 5.0 product. Some applications developed in Clipper 5.0 crashed frequently and unpredictably. Nantucket did not address the issue and some developers moved on to different products out of necessity to have stable applications. Nantucket seemed to be reluctant to even acknowledge there was an issue. The problem was later fixed by Computer Associates.

Revival by third-parties

The Clipper language is being actively implemented and extended by multiple organizations/vendors, like XBase++ from Alaska Software and FlagShip, as well as free projects like Harbour and xHarbour.
Many of the current implementations are portable, Unix, supporting many language extensions, and have greatly extended runtime libraries, as well as various Replaceable Database Drivers supporting many popular database formats, like DBF, DBTNTX, DBFCDX, MachSix, SQL, and more. These newer implementations all strive for full compatibility with the standard dBase/xBase syntax, while also offering OOP approaches and target-based syntax such as SQLExecute.

Usenet

The Clipper Usenet newsgroups are and .

Programming in Clipper

A simple hello world - application:
? "Hello World!"
A simple data base input mask:
USE Customer SHARED NEW
clear
@ 1, 0 SAY "CustNum" GET Customer->CustNum PICT "999999" VALID Customer->CustNum > 0
@ 3, 0 SAY "Contact" GET Customer->Contact VALID !empty
@ 4, 0 SAY "Address" GET Customer->Address
READ

Version history

The various versions of Clipper were
From Nantucket Corporation; the "seasonal versions", billed as "dBase compilers"
From Nantucket Corporation; Clipper 5
and from Computer Associates; CA-Clipper 5
Additional to a standard clipper library, a notable additional library named Clipper Tools were developed by CA after beginning a Clipper production. Three versions of this library were manufactured. All of them associated with a 5st Clippers version. This library became a de facto standard between a Clipper's clones, such as xHarbour, and it was also cloned for a number of Clipper clones manufacturers.