Powerbuilder Documentation 10.5

Powerbuilder Documentation 10.5

Using PBDOM – PB Docs 105

Using PBDOM This section describes how to accomplish basic tasks using PBDOM classes and methods. To check for complete code samples that you can download and test, select Programs>Sybase>PowerBuilder 10.5>PB 10 Code Samples from the Windows Start menu. Validating the XML Before you try to build a document from a file or string, you can…

Examining a class definition – PB Docs 105

Examining a class definition This section illustrates how to access a class definition object and how to examine its properties to get information about the class, its scripts, and its variables. Getting a class definition object To work with class information, you need a class definition object. There are two ways to get a ClassDefinition…

Localizing the product – PB Docs 105

Localizing the product PowerBuilder provides resources for international developers that include localized runtime files and the Translation Toolkit. The localized files become available after the general release of a new version of PowerBuilder. Localized runtime files Localized runtime files are provided for French, German, Italian, Spanish, Dutch, Danish, Norwegian, and Swedish. You can install localized…

Reading and writing text or binary files – PB Docs 105

Reading and writing text or binary files You use PowerScript text file functions to read and write text in line mode or text mode, or to read and write binary files in stream mode: In line mode, you can read a file a line at a time until either a carriage return or line feed…

Advanced printing techniques – PB Docs 105

Advanced printing techniques Creating complex reports in PowerBuilder requires the use of additional functions but is relatively easy. You can use PowerScript functions to define fonts for a job, specify fonts and line spacing, place objects on a page, and specify exactly where you want the text or object to be placed. Defining and setting…

About drag and drop – PB Docs 105

About drag and drop Drag and drop allows users to initiate activities by dragging a control and dropping it on another control. It provides a simple way to make applications graphical and easy to use. For example, in a manufacturing application you might allow the user to pick parts from a bin for an assembly…

Providing online Help for developers – PB Docs 105

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, the User button is hard-coded to launch a file named PBUSR105.HLP: Context-sensitive Help For…

Using window arrays – PB Docs 105

Using window arrays To create an array of windows, declare an array of the datatype of the window. For example, the following statement declares an array named myarray, which contains five instances of the window w_employee:

You can also create unbounded arrays of windows if the number of windows to be opened is not…

Printing data – PB Docs 105

Printing data You can use a DataStore to print data on a remote server if the server is running on Windows or Solaris. Platform note The following example would not work on HP-UX or AIX. On these platforms, EAServer uses a windows-free version of the PowerBuilder runtime environment that does not provide support for graphical…

Invoking component methods – PB Docs 105

Invoking component methods Once a connection to EAServer has been established and a proxy object or objects created, the client application can begin using the server components. Invoking a component method To invoke a method on most component types, you need to execute the PowerScript statements required to perform these operations: Use the CreateInstance method…