Chapter 1
Introduction
Introduction
With the command-based macro language of Corel WordPerfect Suite, you
can combine statements to automate routine tasks and simplify large ones.
You write the macro using statements, compile the macro, then play the
macro.
This guide discusses the main statement types used to write a macro: assignments,
conditions, loops, comments, and commands.
This guide also presents four full-length macro examples with line-by-line
comments in Appendix A.
The Corel PerfectScript,
Corel WordPerfect,
Corel Presentations,
and Corel Quattro Pro
command chapters describe each macro command, product command and system
variable in alphabetical order.
Macro Conventions
-
Italicized words in syntax definitions identify values (or something that
evaluates to a value) provided by the macro programmer when creating a
macro. In addition, italicized words usually identify the data type of
the value. In the case of return values, italicized words identify a value
returned by a command and the value's data type.
-
Although the commands appear in mixed case, you can enter programming commands
in uppercase, lowercase, or mixed case. The compiler is not case sensitive.
-
Product commands, such as AboutDlg or AddSlide, are shown in mixed case.
-
Corel WordPerfect system variables begin with ?, such as ?TextColorRed
or ?FontUnderline. They are shown in mixed case, and they return information
about the application environment.
-
System variables in Corel Presentations, such as EnvPaths or EnvChartType,
are shown in mixed case and usually begin with Env because they return
information about the application environment.