|
|||||||||||||||||||
|
June 1999: What's Different in WP 9 PerfectScript?
At long last, WordPerfect 9 is now available. So how does that affect those macros that you developed for WordPerfect 7 or WordPerfect 8? For the most part, all you'll need to do is make a copy of the macro and recompile it in WPWin 9. Most macros will compile just fine with no errors. There are a few gotcha's that you may encounter, however. Nothing major has changed in PerfectScript, but the WP 9 version of PerfectScript has been streamlined. WPWin 8 has 503 programming commands, while WPWin 9 has only 465 programming commands. Likewise, WPWin 8 includes 2721 product commands, to WPWin9's 2139.
Obsolete CommandsMany commands were redundant and obsolete in WPWin 8. These redundant commands were removed from WPWin 9. If you used any of these commands in your macros, you will need to substitute the newer command. Here are a few examples:
Commands that Never WorkedThere were several commands added to WPWin 8 that never quite worked correctly. These have been removed. Other obsolete commands have also been removed. You probably weren't using too many of these, so they shouldn't pose much of a problem.
Commands with Dual SyntaxSeveral commands have had two personalities through the last two or three iterations of WordPerfect. The older syntax has now been removed. For example,
New EnumerationsA few commands now include more possible return enumeration values, or more possible enumerations that can be used in a particular parameter. For example, the FileConvert command now can convert from more formats to more formats. It also has many new possible return values. You should check commands such as FileConvert, FileOpen, and FileSave to see what (if any) enumerations you are using and adjust them as necessary.
Go For ItThe best way to determine if you will have conversion problems is to make a copy of your macro, compile it in WPWin 9, and run it. When a problem exists, an error may pop up on the screen giving you an idea of what the problem is. Or, the macro's output may not be correct. You'll just need to tackle the problems on a case-by-case basis.You may experience other problems not mentioned here. For example, in one macro I had a problem with the way a date value was handled. The problem was specific to the way I was manipulating the date in the macro. At any rate, conversions from WPWin 7/8 to WPWin 9 should go much more smoothly than conversions from WPDOS to WPWin, or from WPWin 6.x to WPWin 7/8/9.
If you find a particularly daunting conversion problem, I would be happy to hear about it and give
assistance if I can.
Copyright Notice: The information included in the PerfectScript Journal is protected by US Copyright. The author grants you the right to use the routines in your own macros as needed. You may not sell, distribute, or publish them in any form.If you choose to use the information here, you do so entirely at your own risk. No representations are made regarding the fitness of this information for your particular purpose, or for your ability or inability to use the information. You are advised to make backups of all relevant files before implementing any suggestion or technique.© Copyright 1999 by J. Jeppson. |