Corel wordperfect office 2002 ユーザーズマニュアル

ページ / 394
Working with ObjectPAL
ObjectPAL (Object Paradox Application Language) is an object-based, event-driven, visual
programming language. You can use ObjectPAL to customize applications with new buttons,
menus, dialog boxes, prompts, warnings, and online Help. ObjectPAL can be used to extend the
regular Paradox functions, or to create non-database applications.
ObjectPAL and Paradox are tightly integrated; the more you know about Paradox, the more you
can take advantage of it in your ObjectPAL programming. If you think of ObjectPAL as a tool that
extends the power of Paradox, you can discover ways of using the language to perform tasks that
would be awkward, difficult, time-consuming, or impossible to perform without it.
ObjectPAL supports variables, control structures, such as IF, FOR, WHILE, LOOP, and many of the
same data types as other programming languages. You can use methods and procedures supplied
by ObjectPAL, or you can create your own custom methods and custom procedures.
Object-based
ObjectPAL works with objects. You create and work with objects such as fields, lines, ellipses,
pushbuttons, and table frames when you design forms and reports. A formal definition states
that an object consists of data and code. In ObjectPAL terms, objects have properties (color,
position, and line width) and methods (code that defines how the object behaves)
¾
properties
are data, methods are code.
Paradox recognizes two kinds of objects; Design objects and Data objects. Design objects, such
as buttons, list boxes, and other UI Objects, are used in forms. Data objects are files, data types,
and programming structures.
Objects have properties
When you create an object, it has properties that define the appearance and behavior of the
object. The properties of a box include size, position, color, and frame. Using ObjectPAL, you can
create or change all the properties that you use in Paradox.
Objects exist in a context
The context of a given object is defined by the objects that contain it. This feature of ObjectPAL
gives advanced programmers great flexibility and power. As a beginning ObjectPAL programmer,
all you have to remember is that the form contains all other objects. When you place objects in a
form, you are giving those objects context.
Working with ObjectPAL
385