Sample Applications – PB Docs 126
Sample Applications This part introduces the sample applications provided with PowerBuilder and explains how you use them to learn programming techniques. Document get from Powerbuilder help Thank you for watching.
PipeMeter – PB Docs 126
PipeMeter event Description Occurs during pipeline processing after each block of rows is read or written. The Commit factor specified for the Pipeline in the Pipeline painter determines the size of each block. Event ID Event ID Objects pbm_pipemeter Pipeline Parameters None Return Values Long. Return code choices (specify in a RETURN statement): 0 Continue processing…
Using an ActiveX spell checking control – PB Docs 126
Using an ActiveX spell checking control ActiveX controls can be used to spell check text in a RichTextEdit control. The supported ActiveX spell checking controls include VSSpell from ComponentOne and WSpell from Wintertree Software. You can use the SelectedStartPos and SelectedTextLength properties of the RichTextEdit control to highlight the current position of a misspelled word…
Setting properties for the TreeView DataWindow – PB Docs 126
Setting properties for the TreeView DataWindow You can set three types of properties for the TreeView DataWindow: General properties TreeView level properties Detail band properties Specifying images for tree node icons In the sample DataWindow shown in “Creating a new TreeView DataWindow”, different tree node icons display for collapsed and expanded levels. The icons are…
Testing and debugging the component – PB Docs 126
Testing and debugging the component This section describes three techniques you can use to test your component: Live editing Remote debugging Putting messages into the EAServer log Troubleshooting EAServer components For more information about troubleshooting components, see the EAServer documentation. Document get from Powerbuilder help Thank you for watching.
Modifying source-controlled targets and objects – PB Docs 126
Modifying source-controlled targets and objects Objects in targets under source control must be managed differently than the same objects in targets that are not under source control. Document get from Powerbuilder help Thank you for watching.
Providing support for instance pooling – PB Docs 126
Providing support for instance pooling Benefits of instance pooling EAServer components can optionally support instance pooling. Instance pooling allows EAServer clients to reuse component instances. By eliminating the resource drain caused by repeated allocation of component instances, instance pooling improves the overall performance of EAServer. Specifying pooling options in the wizards When you create an…
Valid and well-formed XML documents – PB Docs 126
Valid and well-formed XML documents An XML document must be valid, well-formed, or both. Valid documents To define a set of tags for use in a particular application, XML uses a separate document named a document type definition (DTD). A DTD states what tags are allowed in an XML document and defines rules for how…
Scripting the Error event – PB Docs 126
Scripting the Error event What you do To handle errors in the Error event of the Connection object, you create a user object that customizes the definition of the object. Once you have created the custom Connection object, you can refer to it anywhere in your scripts where you use a Connection object. If you…
PowerBuilder libraries – PB Docs 126
PowerBuilder libraries As you work in an application, component, or .NET target, the objects you create are stored in one or more libraries (PBL files) associated with the application. When you run your application, PowerBuilder retrieves the objects from the library. PowerBuilder provides a Library painter for managing your libraries. For information about creating a…