Using the Source Editor
\The Sandbox \PB History & Future \New In PB8 \Source editor
Workspaces
Code Examples
UI changes
Working with 
PB8
Starting PB
System Tree
Library painter
Clip & Output
Source editor
AutoScript
Source Control
Exception
Handling
Web Targets
4GL Web
Pages
Web DW
Scripting
Web DW
Container
Web DW
Events
Server-side
Methods
JavaScript
Includes
HTML
Rendering
EAServer
Profiles
EAS/Existing
Interfaces
EJB Clients
EAS
Transactions
SSL
Connections
Concurrency
Property
Multiple
PB VMs
DB Interfaces
ANSI
Outer Join
Proxy
Connections
Loading
DB Libs
PB.INI/DB Info
Command Line
Deployment
Version
for EXEs
Color Support
New Object
Properties
DW
Expressions
DW
Properties
PowerScript
Functions
SaveObject
OLE Event
DBCS Support
GUIDs & MIMEs

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.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com