Powerbuilder Documentation 12.6

Powerbuilder Documentation 12.6

SaveObject – PB Docs 126

SaveObject event Description Occurs when the server application saves the object in the control. Event ID Event ID Objects pbm_omnsaveobject OLE Parameters None Return Values Long. Return code: Ignored Usage Using the SaveObject event is the preferred technique for retrieving the ObjectData blob value of an OLE control when the server saves the data in…

Informix DateTime datatype – PB Docs 126

Informix DateTime datatype The DateTime datatype is a contiguous sequence of boxes. Each box represents a component of time that you want to record. The syntax is:

PowerBuilder defaults to Year TO Fraction(5). For a list of qualifiers, see your Informix documentation. To create your own variation of the DateTime datatype: In the Database…

System object datatypes – PB Docs 126

System object datatypes Objects as datatypes System object datatypes are specific to PowerScript. You view a list of all the system objects by selecting the System tab in the Browser. In building PowerBuilder applications, you manipulate objects such as windows, menus, CommandButtons, ListBoxes, and graphs. Internally, PowerBuilder defines each of these kinds of objects as…

Features supported by the I10 interface – PB Docs 126

Features supported by the I10 interface The I10 interface supports several features that are not available when you use the IN9 interface. Some of these features require a specific version of the Informix Dynamic Server database. Document get from Powerbuilder help Thank you for watching.

AscA – PB Docs 126

AscA PowerScript function Description Converts the first character of a string to its ASCII integer value. Syntax

Argument Description string The string for which you want the ASCII value of the first character Return Values Integer. Returns the ASCII value of the first character in string. If string is null, AscA returns null. Usage…

Error logging service – PB Docs 126

Error logging service To record errors generated by PowerBuilder objects running in a transaction server to a log file, create an instance of the ErrorLogging service object and invoke its log method. For example:

The errors are recorded in the EAServer log if the component is running in EAServer, and in the Windows system…

ItemPopulate – PB Docs 126

ItemPopulate event Description Occurs when a TreeView item is being populated with children. Event ID Event ID Objects pbm_tvnitempopulate TreeView Parameters Argument Description handle Long by reference (the handle of the TreeView item being populated) Return Values Long. Return code choices (specified in a RETURN statement): 0 Continue processing Examples This example displays the name of…

Distributed Application Development with PowerBuilder – PB Docs 126

Distributed Application Development with PowerBuilder About this chapter This chapter gives an overview of distributed application development with PowerBuilder. Contents Topic Distributed application architecture Server support Document get from Powerbuilder help Thank you for watching.

PageDown – PB Docs 126

PageDown event Description Occurs when the user clicks in the open space below the scroll box. Event ID Event ID Objects pbm_sbnpagedown VScrollBar, VTrackBar Parameters None Return Values Long. Return code choices (specify in a RETURN statement): 0 Continue processing Usage When the user clicks in a vertical scroll bar, nothing happens unless you have scripts…

Passing strings – PB Docs 126

Passing strings PowerBuilder assumes all string arguments and returned values use Unicode encoding. If a function uses strings with ANSI encoding, you need to add an ALIAS FOR clause to the function declaration and add a semicolon followed by the ansi keyword. For example:

Passing by value The following statement declares the external C…