Resolving naming conflicts – PB Docs 70
Resolving naming conflicts There are two areas in which name conflicts occur: Variables that are defined within different scopes can have the same name. For example, a global variable can have the same name as a local or instance variable. The compiler will warn you of these conflicts, but you don’t have to change the…
OLE objects in scripts – PB Docs 70
OLE objects in scripts This chapter has described the three ways to use OLE in a window or user object. You have learned about: Inserting an object in an OLE control Placing an ActiveX control in an OLE custom control Declaring an OLEObject variable and connecting to an OLE object In scripts, you can manipulate…
Providing online Help for developers – PB Docs 70
Providing online Help for developers Two ways to provide Help There are two ways to integrate online Help for your user-defined functions, user events, and user objects into the PowerBuilder development environment: The User button in the PowerBuilder main Help window is hardcoded to launch a file named PBUSR70.HLP: Context-sensitive Help for user-defined functions can…
Using window arrays – PB Docs 70
Using window arrays To create an array of windows, declare an array of the data type of the window. For example, the following statement declares an array named myarray, which contains five instances of the window w_employee:
1 |
w_employee myarray[5] |
You can also create unbounded arrays of windows if the number of windows to be opened is not…
Populating a graph with data – PB Docs 70
Populating a graph with data This section shows how you can populate an empty graph with data. Using AddSeries You use AddSeries to create a series. AddSeries has this syntax:
1 |
<i>graphName</i>.<b>AddSeries</b> ( <i>seriesName</i> ) |
AddSeries returns an integer that identifies the series that was created. The first series is numbered 1, the second is 2, and so on. Typically…
About Tab controls – PB Docs 70
About Tab controls A Tab control is a container for tab pages that display other controls. One page at a time fills the display area of the Tab control. Each page has a tab like an index card divider. The user can click the tab to switch among the pages: The Tab control allows you…
Localization – PB Docs 70
Localization PowerBuilder provides resources for international developers including localized deployment files, localized versions of the PowerBuilder Foundation Class Library (for PowerBuilder Enterprise and Professional editions), and the Translation Toolkit. These resources are usually available after the general release of a new version of PowerBuilder. Localized deployment files are provided for French, German, Italian, Spanish, Dutch,…
Printing functions – PB Docs 70
Printing functions PowerScript provides predefined functions that you can use to generate simple and complex lists and reports. Using only three functions, you can create a tabular report in your printer’s default font. Using additional functions, you can create a report with multiple text fonts, character sizes, and styles, as well as lines and pictures….
Connecting to a server – PB Docs 70
Connecting to a server To allow a client application to function in a distributed environment, you need to connect to a server application. Connecting to a server application is very similar to connecting to a database. To establish the connection, you use the Connection object, a nonvisual object that works like the Transaction object. Version…
About the com.sybase.dpb package – PB Docs 70
About the com.sybase.dpb package The com.sybase.dpb package contains additional Java classes required to implement applications that use generated JavaBeans classes. This package is installed in the SybaseSharedProxy Generator directory in a file called JDPBlib70.jar. For more information about these classes and their methods, see the online Help. Class categories There are four categories of class…