Appendix B
Upgrade Information
Upgrade Information
This chapter will help you upgrade your macros to function in
Corel WordPerfect Suite. This section includes upgrade information
about Corel PerfectScript, Corel WordPerfect, Corel Presentations,
and Corel Quattro Pro.
For details on any command listed below, refer to the corresponding
Command Reference chapter.
Corel® PerfectScript
This section describes changes to the PerfectScript macro language between
the previous version and this version of
Corel WordPerfect Suite. This section describes
obsolete commands, modified commands, and new commands and features. For
detailed information about each command, see the appropriate Reference
section.
Overview
This is a quick overview of things you may need to do to your macros written
in PerfectScript to make them work in this version of PerfectScript.
-
Review variable, label, procedure and function names, and change if the
name has become a reserved word.
-
Replace obsolete commands with their functional equivalents.
Obsolete Commands
This section describes commands of PerfectScript 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 that have
been modified in PerfectScript. 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.
- Discard
- Dimensions
- Exists
Dialog Callbacks
More Windows messages are now passed through to dialog callback labels.
- MX_POST_INITDIALOG
- WM_SIZE
- WM_ENDSESSION
- WPMSG_SET_NSLB_POPUP
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.
- AppActivate
- AppClose
- AppExecute
- AppExecuteExt
- AppShow
- Beep
- ConvertType
- DateAndTime
- DateDay
- DateMonth
- DateMonthName
- DateString
- DateWeekday
- DateWeekdayName
- DateYear
- DialogAddComboBox
- DialogAddControl
- DialogAddDate
- DialogAddListItem
- DialogAddScrollBar
- DialogDefine
- DialogShow
- DialogDismiss
- DialogDestroy
- DialogSetProperties
- ErrorNumber
- FileNameDialog
- IfPlatform
- IN
- Indirect
- MacroDialogResult
- MacroInfo
- MessageBox
- Prompt
- RegionAddListItem
- RegionEnableWindow
- RegionGetCheck
- RegionGetSelectedText
- RegionMoveWindow
- RegionSelectListItem
- RegionSetCheck
- RegionSetFocus
- RegionSetModified
- RegionShowWindow
- RegistryCreateKey
- RegistryOpenKey
- TimeHour
- TimeHundredth
- TimeMinute
- TimeSecond
- TimeString
- ValueType
New Commands and Features
This section describes the new commands and features of PerfectScript.
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.
- /* ... */ block comments
- CreateObject
- DateAddDays
- DateAddWeeks
- DateAddMonths
- DateAddYears
- DateDayOfYear
- DateDaysInMonth
- DateDaysInYear
- DateIsLeapYear
- DateOfMonthEnd
- DateOfNthDay
- DateOfNthWeek
- DateOfNthWeekday
- DateWeekOfYear
- DialogControlQuery
- DialogControlUpdate
- DoesRegionExist
- ElseIfPlatform
- EndWith
- FileConvert
- FileConvertError
- FileType
- FileTypeExtension
- FileTypeList
- FileTypeName
- GetObject
- LIKE
- Object
- ObjectInfo
- RandomSeed
- RegionAddListItemByIndex
- RegionGetClass
- RegionGetListItem
- RegionGetListItemByIndex
- RegionGetListContents
- RegionGetListSelectedCount
- RegionGetPosition
- RegionIsEnabled
- RegionRemoveListItemByIndex
- RegionSelectListItemByIndex
- RegionSetBitmap
- RegionSetEditSelection
- RegionSetSelectedText
- StrMakeList
- StrParseList
- TimeZoneInfo
- VersionInfo
- With
Corel® WordPerfect®
The product commands and system variables in Corel WordPerfect are essentially
the same as those for the previous version. 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. 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.
- ?PathHyphenation
- ?WebFormatAsWebDocument
- HypertextControlBar
- MenuAddItem
- MenuDeleteItem
- PageNumberingSelectDlg
- PrefLocationOfHyphenationFiles
- QuickFont
- WebColorsDlg
- WebFormatAsWebDocument
- WebTableBordersToggle
New System Variables and Product Commands
- ?DOSName
- ?DOSPath
- ?ODMAName
- ?ODMAPath
- ApplicationBarShow
- BlockProtectToggle
- BoxBackwardOne
- BoxForwardOne
- BoxToBack
- BoxToFront
- CommentNext
- CommentPrevious
- CorelVersionArchiveCurrentDlg
- CorelVersionRetrieveCurrentDlg
- CorelVersionRetrieveDocumentDlg
- EndnoteFootnoteConvert
- EndnoteFootnoteNext
- EndnoteFootnotePrev
- ExecScrapBook
- FootnoteEndnoteDlg
- GoToQuickmarkOnOpen
- HeaderFooterNext
- HeaderFooterPrev
- HypertextStyleEdit
- ImportSetSizeToFit
- MenuAddFeature
- MenuAddMacro
- MenuAddProgram
- MenuAddScript
- MenuAddSeparator
- MenuAddSubMenu
- MenuDeleteItemEx
- MergeFileAssociateODBC
- MergeODBC
- PageSetupDlg
- PerfectExpert
- PowerTableNumericFormat
- PrefApplicationBarEdit
- PrefTaskBar
- ProofReadAsYouGoOff
- ProofReadGrammar
- QuickCorrectAutoCreateException
- QuickCorrectOtherWords
- QuickCorrectQuickSymbolsSet
- QuickFontEx
- QuickLink
- QuickWords
- QuickWordsDlg
- SearchNextCurrentWord
- SearchPreviousCurrentWord
- SGMLBoxAddToAttrList
- SGMLBoxAttribute
- SGMLBoxDeleteAttribute
- SGMLBoxDeleteMarkup
- SGMLBoxElementDlg
- SGMLBoxMarkup
- SGMLContentModelDlg
- SGMLEditAttributeDlg
- SGMLEditBoxAttributeDlg
- SGMLEditBoxAttributesDlg
- SGMLSplitElement
- SGMLTagBox
- ShadowCursorOptions
- ShowSGMLTree
- TableDeleteTableDlg
- TableDragToCreate
- TableJoinCellTool
- TableRotateCell
- TableSortTable
- TableSplitColumnTool
- TableSplitRowTool
- TableTextBoxCreate
- ThirdPartyCreate
- ThirdPartyDelete
- ThirdPartyFind
- ThirdPartyFindByID
- ToolbarCount
- ToolbarName
- ViewToggle
- WatermarkNext
- WatermarkPrev
- WebColumnDefineDlg
- WebFormsFormPropertiesDlg
- WebFormsHiddenDlg
- WebFormsListPropertiesDlg
- WebFormsProperties
- WebFormsRadioPropertiesDlg
- WebFormsTextAreaPropertiesDlg
- WebFormsTextPropertiesDlg
- WebInsertCheckBox
- WebInsertForm
- WebInsertHiddenField
- WebInsertPassword
- WebInsertRadioButton
- WebInsertResetButton
- WebInsertSelectList
- WebInsertSubmitButton
- WebInsertSubmitImage
- WebInsertTextArea
- WebInsertTextLine
- WebJavaCreateApplet
- WebJavaModifyApplet
- WebJavaRunApplets
- WebColorDlg
- WebViewAsHTML
Corel® Presentations
The product commands and system variables in Corel Presentations are
essentially the same as those for the previous version of Corel Presentations.
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 Presentations. 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.
- ActionLinkDlg
- ColorAttributesDlg
- DetachTemplate
- GalleryOptions
- GalleryOptionsDlg
- PreferencePresentationDlg
- PublishToEnvoy
- RetrieveColorPalette
- RetrieveColorPaletteDlg
- RunShowExpert
- SaveColorPalette
- SaveColorPaletteDlg
- SaveFigureGalleryToWPG
- SaveShowSlidesToWPG
- SaveShowSlideToWPG
- SelectPrinterDlg
- SetBulletListTransitionDlg
- SetCurrentPrinter
- SetDataChartTransitionDlg
- SetGraphicObjectTransitionDlg
- SetSlideCDAudio
- SetSlideLinks
- SetSoundControl
- SetSoundOptions
- SetTexture
- SlideCDAudioDlg
- SlideShowList
- SoundOptionsDlg
- TemplateDlg
New System Variables and Product Commands
- AlignTextBottom
- AlignTextMiddle
- AlignTextTop
- BranchZoomInOut
- ChartBubbleChart
- ChartPasteBranch
- ChartResetTextLocation
- ChartSelectLines
- ChartSelectPieText
- ChartSetAxisTitleHorz
- ChartSetAxisTitleVert
- ChartSetLinear
- ChartSetLog
- ChartSetY1
- ChartSetY2
- ChartTextUserPos
- ChartViewOrgOutline
- ChartZeroBaseline
- CreatePQF
- DatasheetBlockMode
- DatasheetOneColWidth
- DefineSubTitleDlg
- DefineTitleDlg
- DeleteAlignmentBar
- DrawObjectMarks
- EnvIsSlideSkipped
- EnvSlideStringData
- ExportCPT7
- ExportEPS
- ExportPNG
- FileNewDlg
- FontSizeDec
- FontSizeInc
- GrayScale
- HelpAssistant
- ImportOrgOutline
- InsertClipartDlg
- InsertEquation
- InsertMemoObject
- InsertMovie
- InsertMovieObject
- InsertQuattroTable
- InsertTextart
- InternetPublish
- InternetPublisher
- LayoutGallery
- MaximizeSpacing
- MovieSettings
- NewDocument
- OutlineNextLevel
- OutlinePreviousLevel
- PageMode
- PlaySlideShowFirst
- PosterDlg
- PrefCustomDlg
- PrefEnvironmentDlg
- PreferenceEnvGenDlg
- PreferenceEnvLangDlg
- PreferenceLOF2Dlg
- PreferencePropertyBarDlg
- PreferenceToolPaletteDlg
- PrefLOFDlg
- PropertyBarEdit
- PublishToActiveX
- QuickLinkAttributeDlg
- ReplaceWithClipart
- ResampleBitmapCmd
- SendtoEnvoy
- SendtoGraphicsland
- SendToWP
- SetBubbleAnchors
- SetRangeHighlight
- SetShowInfo
- SetSlideTransitionDirectionOnly
- SetSlideTransitionOnly
- SetSlideTransitionSpeedOnly
- SetTexture2
- ShowGuides
- ShowHideSubordinates
- ShowPropertyBar
- ShowToolPalette
- SkipSelectedSlide
- SlideAppearanceBackground
- SlideAppearanceLayout
- SlideAudienceManager
- SlideDisplaySequence
- SlidePropertiesDlg
- SlideQuickPlay
- SlideTransitionDirection
- SlideTransitionSpeed
- SnapToAlignment
- SwapFillColors
- ToolPaletteEdit
- VersionControlDocument
- VersionControlRetrieve
- VersionControlSave
- ViewToolBarsDlg
- WebBrowserLaunch
- WorkInProgressDlg
- ZoomDlg
- ZoomOther
Corel® Quattro® Pro
Obsolete Commands
- {Application.Display.Clock_Display}
- DataModel(SrcBlock:String; DstBlock:String; LinkType:String; ColName:String)
- Summary_Author(Author:String)
- Summary_Comments(Comments:String)
- Summary_Keywords(Keywords:String)
- Summary_Save_Preview_Picture(Save?:Enumeration {Yes!; No!})
- Summary_Subject(Subject:String)
- Summary_Title(Title:String)
New Commands
- Alert (Title?:String; Message?:String; OKExit?:String; [Type?:Numeric]; [Icon?:Numeric]; [DefaultBtn?:Numeric])
- Application_Display_Default_View (DefaultView?:Enumeration {Draft!; Page!})
- Application_Display_History_List (Enable?:Enumeration {Yes!; No!})
- Application_Display_Min_Number_Sheets (Number?:Numeric)
- Application_Display_Sheet_Tab_Label (SheetTabName?:Enumeration {Letters!; Numbers!})
- Application_Display_Show_GroupBox_As_Line (Enable?:Enumeration {Yes!; No!})
- Application_Display_Show_PreSelection (Enable?:Enumeration {Yes!; No!})
- Application_File_Options_AutoRefreshTime (Time?:Numeric)
- Application_File_Options_DoRefresh (Enable?:Enumeration {Yes!; No!})
- Application_General_Calc_As_You_Go (Enable?:Enumeration {Yes!; No!})
- Application_General_Cell_Reference_Checker (Enable?:Enumeration {Yes!; No!})
- Application_General_Fit_As_You_Go (Enable?:Enumeration {Yes!; No!})
- Application_General_QuickType (Enable?:Enumeration {Yes!; No!})
- Audit_Remove_All_Arrows ()
- Audit_Trace_Dependents ()
- Audit_Trace_Precedents ()
- ClearComments ([PageOnly?:Numeric])
- Comment_Edit (Value?:String)
- Comment_EditURL (Value?:String)
- CrossTab (SrcBlock:String; DstBlock:String; PageName:String; RowData:String; ColData:String; {[DataTotal:String]})
- DatabaseQuery (Type?:String; Name?:String; QueryString?:String; Destination?:String)
- DraftViewGoto ()
- FileVersion_Retrieve (Filename?:String)
- FileVersion_Retrieve_Current ()
- FileVersionSave ()
- InsertPageBreak ()
- InsertPageBreak_Create (Row:Numeric; Column:Numeric)
- InsertPageBreak_Delete (Row:Numeric; Column:Numeric)
- Notebook_Summary (Settings:String)
- Notebook_Summary_Author (Author:String)
- Notebook_Summary_Comments (Comments:String)
- Notebook_Summary_Keywords (Keywords:String)
- Notebook_Summary_Subject (Subject:String)
- Notebook_Summary_Title (Title:String)
- Notebook_System (Enable?:Enumeration {Yes!; No!})
- Outline_AutoOutline ()
- Outline_Collapse ()
- Outline_Expand ()
- Outline_Group ()
- Outline_Hide (Hide?:Numeric)
- Outline_Summary (Row?:Enumeration {Above!; Below!}; Col?:Enumeration {Left!; Right!})
- Outline_ToLevel (RowCol?:String; [Level?:Numeric])
- Outline_Ungroup ()
- Outline_UnGroupAll ()
- PageViewGoto ()
- ParseExpert_ApplyFormatting (Apply?:Enumeration {Yes!; No!})
- ParseExpert_ColumnWidths (Apply?:Enumeration {Yes!; No!})
- ParseExpert_ConsecutiveAsOne (Apply?:Enumeration {Yes!; No!})
- ParseExpert_DataType (Type?:String)
- ParseExpert_DelimiterType (Type?:String)
- ParseExpert_Go ()
- ParseExpert_IgnoreNonConformingRows (Apply?:Enumeration {Yes!; No!})
- ParseExpert_InputBlock (Block?:String)
- ParseExpert_InputFile (Filename?:String)
- ParseExpert_InputType (Type?:String)
- ParseExpert_JoinBrokenLines (Apply?:Enumeration {Yes!; No!})
- ParseExpert_LineLength (Length?:Numeric)
- ParseExpert_LoadSettings ()
- ParseExpert_OtherDelimiter (Delimiter?:String)
- ParseExpert_OutputBlock (Block?:String)
- ParseExpert_PageLength (Length?:Numeric)
- ParseExpert_PageLengthEnabled (Apply?:Enumeration {Yes!; No!})
- ParseExpert_Restore ()
- ParseExpert_SaveSettings ()
- ParseExpert_SettingsFile (Filename?:String)
- ParseExpert_Skip1stChar (Apply?:Enumeration {Yes!; No!})
- ParseExpert_TextQualifier (Type?:String)
- ParseExpert_ValueQualifier (Type?:String)
- Print_Create_Footer (CreateFooter:Enumeration {Yes!; No!})
- Print_Create_Header (CreateHeader:Enumeration {Yes!; No!})
- Print_Group_Copies (Group:String)
- Print_Options ()
- Print_Pages_Across (PagesAcross:Numeric)
- Print_Pages_Down (PagesDown:Numeric)
- Print_PrinterSetup (Printer:String;
Port:String;
PrintToFile?:String;
Filename:String;
OverWrite?:String)
- QuickFilter_Go (Block?:String;
[OpCode1?:String];
[Value1?:String];
[Conditional1?:String];
[OpCode2?:String];
[Value2?:String];
[Conditional2?:String];
[OpCode3?:String];
[Value3?:String])
- QuickFilter_Toggle ([Block?:String])
- QuickFilter_TopGo (Block?:String; [OpCode1?:String]; [Value1?:Numeric])
- Sort_BlankCellsFirst (BlankFirst?:Enumeration {Yes!; No!})
- Sort_Heading (Heading?:Enumeration {Yes!; No!})
- Sort_PreviousSorts (PreviousSorts?:Numeric)
- Sort_Type (Type?:String)
- WindowTile_TopToBottom ()