Description
PowerBuilder 8 introduces a new Source editor that allows you to edit PowerScript objects in full source mode. The Source editor makes it unnecessary to export and then import an object in order to edit it. In conjunction with the Output window, the Source editor also makes it easier to identify and edit an object that generates an error during migration.
Usage
You can open an object in the Source editor in one of several ways:
- Using the Open dialog
- Selecting the Edit Source menu item in the Library painter
- Selecting the Edit Source menu item in the Output window for a line that contains an error
Unlike the file editor, the Source editor cannot be opened independently. It can only be used in conjunction with an object defined within a target in the current workspace. The Source editor display is identical to the display in the file editor except that the two PBExport lines prepended to the code in the file editor are not needed in the Source editor.
Use with caution Although the Source editor provides a quick way to make global changes, you should use it with caution, and you must be familiar with the syntax and semantics of PowerScript source code before changing it in the Source editor.
Changes you make to an object's source code using the Source editor take effect immediately when you save the object, before the code is validated. If an error message displays in the Output window, you must fix the problem in the Source editor before you close the editor. If you do not, you will not be able to open the object in a painter.
|