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

ページ / 394
Using the Debugger
The debug environment includes the Debugger window, the Watches window, the Breakpoints
window, the Tracer window, and the Call Stack. For example, you can choose to have the
Debugger open automatically when you are in design mode or when you are running a form.
Using the Debugger, you can set breakpoints so that you can execute instructions up to a certain
point, then stop and see what has happened; you can inspect or watch variables to make sure
values are being manipulated as you intended; you can execute a method one line at a time
(called single-stepping), or step over methods and procedures that you know are bug-free; and
finally, you can list and view the methods and procedures on the call stack (those called since
your form started running).
Using the ObjectPAL Editor
The ObjectPAL Editor provides the location for you to add new code or edit existing code. You
can also copy, cut, and paste code from code examples available in the ObjectPAL Help into the
Editor window.
The Editor window contains two list boxes under the title bar. The list box on the left allows you
to move between the objects in your document. The list box on the right shows all possible
events or methods for the object selected.
To View ObjectPAL code
Click View Design form.
Select an object on the form.
Click Tools Object explorer.
Click the Events tab or the Methods tab.
All events or methods associated with that object are listed.
Double-click a method or event.
All methods and events that have code attached to them will have a blue dot appearing
beside the method or event name.
Within the Editor window, you can select any type or method name and press F1 to
get help on that type or method. If there is only one help topic for the selected item,
pressing F1 takes you directly to that topic. If help contains multiple topics for the
selected word, you'll see a list of topics. Choose a topic and click Display.
ObjectPAL Help
The Paradox online Help contains a separate file on ObjectPAL, called ObjectPAL Reference. This
file introduces you to the basic concepts and helps you to understand and learn the language. It
also contains a complete language reference section, providing descriptions and code examples
for elements, methods, and procedures. The code examples available in this file can be copied
and pasted directly into the ObjectPAL Editor.
The ObjectPAL tutorial is available for beginning programmers. The tutorial takes you through
the core concepts of the language, introduces when and why you would use it, and familiarizes
you to the process of writing ObjectPAL code.
Working with ObjectPAL
387