Appendix a

Macros

Upgrade Information



The following information will help you upgrade your macros to function in Corel WordPerfect Suite 8. This section includes upgrade information about Corel PerfectScript 8, Corel WordPerfect 8, and Corel Quattro Pro 8. For details on any command listed below, refer to the corresponding Command Reference chapter.


Corel PerfectScript 8

This section describes changes to the PerfectScript macro language between Corel WordPerfect Suite 7 and Corel WordPerfect Suite 8.  This section describes obsolete commands, modified commands, and new commands and features..

Overview

This is a quick overview of things you may need to do to your macros written in PerfectScript 7 to make them work in PerfectScript 8.

Obsolete Commands

This section describes commands of PerfectScript 7 that are now obsolete.  For backward compatibility, these commands will continue to function and be supported, but are no longer documented and may be removed in a future release of PerfectScript.  You are encouraged to replace these commands with their functional equivalents as soon as possible.

Obsolete command

Replace with

Assign

“:=” or “=”

Coach... commands

Nothing. The functionality of these commands no longer exists.

DialogAddPopupButton

DialogAddComboBox

RegionSetBitmapFilename

RegionSetBitmap

Check! and Uncheck! of State parameter of RegionSetCheck

Checked! and Unchecked!

Persist! of Pool parameter of Exists

Persistent!

Modified Commands and Features

This section lists the commands and features of PerfectScript 7 that have been modified in PerfectScript 8.  The modifications to these commands were to add additional functionality, and all previous functionality has been preserved.  These changes will not affect existing macros.

Commands That Now Support Named Parameters

The following commands have been changed to enable the passing of parameters by name.

Dialog Callbacks

More Windows messages are now passed through to dialog callback labels.

More notification codes are now passed through for the WM_COMMAND message.

Added Capabilities

New capabilities were added to the following commands.  This includes new return values, new parameters and new enumerations.  These changes will not affect existing macros.

New Commands and Features

This section describes the new commands and features of PerfectScript 8.

OLE Automation

PerfectScript is now an OLE Automation controller, and can send commands to OLE Automation servers.

Repeating Parameters

A macro array may now be passed in place of repeating parameter groups for those commands that have repeating parameters.

New Commands

The following commands are new and have been added for PerfectScript 8.


Corel WordPerfect 8

The product commands and system variables in Corel WordPerfect 8 are essentially the same as those for Corel WordPerfect 7. Backward compatibility was maintained except where certain operating system or product feature changes made it impossible.

Obsolete System Variables and Product Commands

Obsolete system variables and product commands are commands that are no longer part of Corel WordPerfect 8.  They have usually been replaced by new commands that are more consistent with the new version of the program.  In a few instances, partial functionality has been preserved in obsolete commands.

New System Variables and Product Commands


Corel Quattro Pro 8

Obsolete Commands

{Application.Display.Clock_Display}

DataModel

DataModel

SrcBlock:String;

DstBlock:String;

LinkType:String;

ColName:String)

Summary_Author

Summary_Author(Author:String)

Summary_Comments

Summary_Comments(Comments:String)

Summary_Keywords

Summary_Keywords(Keywords:String)

Summary_Save_Preview_Picture

Summary_Save_Preview_Picture(Save?:Enumeration{

Yes!;

No!})

Summary_Subject

Summary_Subject(Subject:String)

Summary_Title

Summary_Title(Title:String

New Commands

Alert

Alert (

Title?:String;

Message?:String;

OKExit?:String;

[Type?:Numeric];

[Icon?:Numeric];

[DefaultBtn?:Numeric])

Application_Display_Default_View

Application_Display_Default_View (DefaultView?:Enumeration {

Draft!;

Page!})

Application_Display_History_List

Application_Display_History_List (Enable?:Enumeration {

Yes!;

No!})

Application_Display_Min_Number_Sheets

Application_Display_Min_Number_Sheets (Number?:Numeric)

Application_Display_Sheet_Tab_Label

Application_Display_Sheet_Tab_Label (SheetTabName?:Enumeration {

Letters!;

Numbers!})

Application_Display_Show_GroupBox_As_Line

Application_Display_Show_GroupBox_As_Line (Enable?:Enumeration {

Yes!;

No!})

Application_Display_Show_PreSelection

Application_Display_Show_PreSelection (Enable?:Enumeration {

Yes!;

No!})

Application_File_Options_AutoRefreshTime

Application_File_Options_AutoRefreshTime (Time?:Numeric)

Application_File_Options_DoRefresh

Application_File_Options_DoRefresh (Enable?:Enumeration {

Yes!;

No!})

Application_General_Calc_As_You_Go

Application_General_Calc_As_You_Go (Enable?:Enumeration {

Yes!;

No!})

Application_General_Cell_Reference_Checker

Application_General_Cell_Reference_Checker (Enable?:Enumeration {

Yes!;

No!})

Application_General_Fit_As_You_Go

Application_General_Fit_As_You_Go (Enable?:Enumeration {

Yes!;

No!})

Application_General_QuickType

Application_General_QuickType (Enable?:Enumeration {

Yes!;

No!})

Audit_Remove_All_Arrows

Audit_Remove_All_Arrows ()

Audit_Trace_Dependents

Audit_Trace_Dependents ()

Audit_Trace_Precedents

Audit_Trace_Precedents ()

ClearComments

ClearComments ([PageOnly?:Numeric])

Comment_Edit

Comment_Edit (Value?:String)

Comment_EditURL

Comment_EditURL (Value?:String)

CrossTab

CrossTab (

SrcBlock:String;

DstBlock:String;

PageName:String;

RowData:String;

ColData:String;

{[DataTotal:String]})

DatabaseQuery

DatabaseQuery (

Type?:String;

Name?:String;

QueryString?:String;

Destination?:String)

DraftViewGoto

DraftViewGoto ()

FileVersion_Retrieve

FileVersion_Retrieve (Filename?:String)

FileVersion_Retrieve_Current

FileVersion_Retrieve_Current ()

FileVersionSave

FileVersionSave ()

InsertPageBreak

InsertPageBreak ()

InsertPageBreak_Create

InsertPageBreak_Create (

Row:Numeric;

Column:Numeric)

InsertPageBreak_Delete

InsertPageBreak_Delete (

Row:Numeric;

Column:Numeric)

Notebook_Summary

Notebook_Summary (Settings:String)

Notebook_Summary_Author

Notebook_Summary_Author (Author:String)

Notebook_Summary_Comments

Notebook_Summary_Comments (Comments:String)

Notebook_Summary_Keywords

Notebook_Summary_Keywords (Keywords:String)

Notebook_Summary_Subject

Notebook_Summary_Subject (Subject:String)

Notebook_Summary_Title

Notebook_Summary_Title (Title:String)

Notebook_System

Notebook_System (Enable?:Enumeration {

Yes!;

No!})

Outline_AutoOutline

Outline_AutoOutline ()

Outline_Collapse

Outline_Collapse ()

Outline_Expand

Outline_Expand ()

Outline_Group

Outline_Group ()

Outline_Hide

Outline_Hide (Hide?:Numeric)

Outline_Summary

Outline_Summary (

Row?:Enumeration {

Above!;

Below!};

Col?:Enumeration {

Left!;

Right!})

Outline_ToLevel

Outline_ToLevel (

RowCol?:String;

[Level?:Numeric])

Outline_Ungroup

Outline_Ungroup ()

Outline_UnGroupAll

Outline_UnGroupAll ()

PageViewGoto

PageViewGoto ()

ParseExpert_ApplyFormatting

ParseExpert_ApplyFormatting (Apply?:Enumeration {

Yes!;

No!})

ParseExpert_ColumnWidths

ParseExpert_ColumnWidths (Apply?:Enumeration {

Yes!;

No!})

ParseExpert_ConsecutiveAsOne

ParseExpert_ConsecutiveAsOne (Apply?:Enumeration {

Yes!;

No!})

ParseExpert_DataType

ParseExpert_DataType (Type?:String)

ParseExpert_DelimiterType

ParseExpert_DelimiterType (Type?:String)

ParseExpert_Go

ParseExpert_Go ()

ParseExpert_IgnoreNonConformingRows

ParseExpert_IgnoreNonConformingRows (Apply?:Enumeration {

Yes!;

No!})

ParseExpert_InputBlock

ParseExpert_InputBlock (Block?:String)

ParseExpert_InputFile

ParseExpert_InputFile (Filename?:String)

ParseExpert_InputType

ParseExpert_InputType (Type?:String)

ParseExpert_JoinBrokenLines

ParseExpert_JoinBrokenLines (Apply?:Enumeration {

Yes!;

No!})

ParseExpert_LineLength

ParseExpert_LineLength (Length?:Numeric)

ParseExpert_LoadSettings

ParseExpert_LoadSettings ()

ParseExpert_OtherDelimiter

ParseExpert_OtherDelimiter (Delimiter?:String)

ParseExpert_OutputBlock

ParseExpert_OutputBlock (Block?:String)

ParseExpert_PageLength

ParseExpert_PageLength (Length?:Numeric)

ParseExpert_PageLengthEnabled

ParseExpert_PageLengthEnabled (Apply?:Enumeration {

Yes!;

No!})

ParseExpert_Restore

ParseExpert_Restore ()

ParseExpert_SaveSettings

ParseExpert_SaveSettings ()

ParseExpert_SettingsFile

ParseExpert_SettingsFile (Filename?:String)

ParseExpert_Skip1stChar

ParseExpert_Skip1stChar (Apply?:Enumeration {

Yes!;

No!})

ParseExpert_TextQualifier

ParseExpert_TextQualifier (Type?:String)

ParseExpert_ValueQualifier

ParseExpert_ValueQualifier (Type?:String)

Print_Create_Footer

Print_Create_Footer (CreateFooter:Enumeration {

Yes!;

No!})

Print_Create_Header

Print_Create_Header (CreateHeader:Enumeration {

Yes!;

No!})

Print_Group_Copies

Print_Group_Copies (Group:String)

Print_Options

Print_Options ()

Print_Pages_Across

Print_Pages_Across (PagesAcross:Numeric)

Print_Pages_Down

Print_Pages_Down (PagesDown:Numeric)

Print_PrinterSetup

Print_PrinterSetup (

Printer:String;

Port:String;

PrintToFile?:String;

Filename:String;

OverWrite?:String)

QuickFilter_Go

QuickFilter_Go (

Block?:String;

[OpCode1?:String];

[Value1?:String];

[Conditional1?:String];

[OpCode2?:String];

[Value2?:String];

[Conditional2?:String];

[OpCode3?:String];

[Value3?:String])

QuickFilter_Toggle

QuickFilter_Toggle ([Block?:String])

QuickFilter_TopGo

QuickFilter_TopGo (

Block?:String;

[OpCode1?:String];

[Value1?:Numeric])

Sort_BlankCellsFirst

Sort_BlankCellsFirst (BlankFirst?:Enumeration {

Yes!;

No!})

Sort_Heading

Sort_Heading (Heading?:Enumeration {

Yes!;

No!})

Sort_PreviousSorts

Sort_PreviousSorts (PreviousSorts?:Numeric)

Sort_Type

Sort_Type (Type?:String)

WindowTile_TopToBottom

WindowTile_TopToBottom ()