AccessMyLibrary provides FREE access to millions of articles from top publications available through your library.

TBrowse and TBColumn basics. (Clipper Basics column) (Tutorial)

Data Based Advisor

| April 01, 1993 | Gutierrez, Dan D. | COPYRIGHT 1989 Advisor Publications, Inc. (Hide copyright information)Copyright

This month's column applies the general "object-based" concepts defined last month by showing how to use two CA-Clipper predefined classes: TBrowse and TBColumn. These classes have made Clipper's previous database browsing technology, DBEDIT[unkeyable], obsolete. DBEDIT[unkeyable] is a built-in function that can still be use, but there's little reason to do so. (In the manual it's listed as a Summer '87 compatibility function.) Clipper's current data browsing facilities far surpass anything previously available in this language or any other Xbase dialect. The key is the object-oriented direction of the browsing technology in Clipper 5.

We'll use the term TBrowse to encompass Clipper's browsing technology and it should be understood that this includes both the TBrowse and TBColumn classes. Moreover, TBrowse can be used to browse not just information coming from a database, but any tabular data as well. For instance, arrays and DOS text files may be browsed via TBrowse.

The TBrowse and TBColumn classes

To browse tabular data in Clipper, you must use the TBrowse and TBColumn predefined classes. We use the TBrowse class to create and manipulate objects used as the primary mechanism for browsing table oriented data.

A TBrowse object depends on one or more TBColumn objects. The TBColumn class is used to create and manipulate objects used with TBrowse objects. A TBColumn object contains all the specifications required to define a single column of a TBrowse object.

Both classes have constructor functions used to create an instance of each class, also known as an "object." For TBrowse, there are the TBrowseNew[unkeyable] and TBrowseDB[unkeyable] constructors, and for TBColumn there is TBColumnNew[unkeyable].

In addition, there's a set of exported instance variables for both classes. Table 1 summarizes these variables including the variable's name, data type, and whether it's assignable or not. Think of the word "exported" to mean visible to the programmer to assign new values or access the value of the variable. In true object-oriented programming (OOP) languages where you can create classes, non-exported instance variables become possible. In this case, the variables are used only …

Related articles from newspapers, magazines, journals, and more
Reader Feedback. (various programming issues for Computer Associates'...
Magazine article from: Data Based Advisor Spence, Rick August 1, 1993 700+ words
Building a better TBrowse. (Clipper Basics ) (Tutorial)
Magazine article from: Data Based Advisor Gutierrez, Dan D. June 1, 1993 700+ words
Jumping from subset to subset in TBrowse. (Hands-On Clipper)(Column) (Tutorial)
Magazine article from: Data Based Advisor Lief, Greg December 1, 1992 700+ words
Grumpfish Inc. (Visible TBrowse) (Database Report, brief article) (product...
Magazine article from: Data Based Advisor Danenhauer, Kristie Schaffhauser, Dian October 1, 1991 700+ words
tBrowse revisited. (a revised tBrowse implementation)(Hardcore...
Magazine article from: Data Based Advisor Spence, Rick February 1, 1992 700+ words
©2013 Gale, a part of Cengage Learning. All rights reserved. Contact us | Privacy policy | Terms and conditions

The AccessMyLibrary advertising network includes: womensforum.com GlamFamily