Powerbuilder Documentation 2022

Powerbuilder Documentation 2022

Design and create a RibbonBar – PB Docs 2022

Design and create a RibbonBar As the first step, you shall design the RibbonBar, that is, deciding what items to contain in the RibbonBar, what modern-looking image to use for each item, and how to group the items, etc. Once you know clearly how you want the RibbonBar to look like, you can start to…

DBNotification – PB Docs 2022

DBNotification PowerScript event Description Triggered by a PowerBuilder script or DataWindow database operation command if a PowerBuilder database driver receives a notification from the database server. This event is supported only with the Oracle 10g (O10) native database interface. Event ID Event ID Objects pbm_dbnotification Transaction Arguments Argument Description notification A value of the DBNotification…

RemoveChildElements Syntax 3 – PB Docs 2022

RemoveChildElements Syntax 3 Description Removes from the current PBDOM_ELEMENT object all child PBDOM_ELEMENT objects (one level deep) that have the specified local name and belong to the specified namespace. Syntax

Argument Description pbdom_element_name The name of a PBDOM_ELEMENT object strElementName The name of the child PBDOM_ELEMENT objects to remove strNamespacePrefix Prefix of the namespace…

DateFormat – PB Docs 2022

DateFormat database parameter Description When you update data in the DataWindow painter, PowerBuilder builds a SQL UPDATE statement in the background. The DateFormat parameter determines how PowerBuilder specifies a date datatype when it builds the SQL UPDATE statement. Applies to ADO.NET OLE DB SNC SQL Native Client for Microsoft SQL Server MSOLEDBSQL Microsoft OLE DB…

ProcessPBMessage – PB Docs 2022

ProcessPBMessage Description Checks the PowerBuilder message queue and, if there is a message in the queue, attempts to process it. Syntax

Return value pbboolean. Returns true if a PowerBuilder message was processed, and false otherwise. Examples This message loop in a WinMain function processes a PowerBuilder message if a message has been received and…

Database preferences and supported database interfaces – PB Docs 2022

Database preferences and supported database interfaces Contents AutoCommit Connect to Default Profile Keep Connection Open Lock Read Only Shared Database Profiles SQL Terminator Character Use Extended Attributes The following table lists each supported database interface and the connection-related database preferences you can use with that interface in PowerBuilder. The preferences listed in the table pertain…

SetString – PB Docs 2022

SetString Description Frees an existing string and assigns a new string value to it by performing a deep copy. Syntax

Argument Description string A valid pbstring variable whose value is to be replaced src The string to be assigned to string Return value PBXRESULT. Returns PBX_OK for success or PBX_E_INVALID_ARGUMENT if the new string…

CreateJsonObject – PB Docs 2022

CreateJsonObject PowerScript function Description Creates the object of JsonObjectItem type as root item to initialize instance. Applies to JSONGenerator objects Syntax

Argument Description objectname Reference to the JSONGenerator object instance. Return value Long. Returns the root item handle if it succeeds and -1 if an error occurs. Examples This example creates the JSON root…

Syntax 2: For ErrorLogging objects – PB Docs 2022

Syntax 2: For ErrorLogging objects Description Writes a string to the log file maintained by the object’s container. Applies to ErrorLogging objects Syntax

Argument Description errorlogobj Reference to the ErrorLogging service instance message The text string you want to write to the log Return value None. Usage The ErrorLogging object provides the ability to…

Copy – PB Docs 2022

Copy PowerScript function Description Puts selected text or an OLE object on the clipboard. Copy does not change the source text or object. Applies to DataWindow, InkEdit, MultiLineEdit, SingleLineEdit, RichTextEdit, DropDownListBox, DropDownPictureListBox, OLE controls, and OLE DWObjects (objects within a DataWindow object that is within a DataWindow control) Syntax

Argument Description objectref One of…