Passing arguments to functions and events – PB Docs 2017
Passing arguments to functions and events Contents Passing objects Passing structures Passing arrays In PowerBuilder, arguments for built-in or user-defined functions and events can be passed three ways: Method of passing Description By value A copy of the variable is available in the function or event script. Any changes to its value affect the copy…
Syntax 1: For reading into a string – PB Docs 2017
Syntax 1: For reading into a string Description Reads data from an OLE stream object into a string. Applies to OLEStream objects Syntax
1 |
olestream.Read ( variable {, stopforline } ) |
Argument Description olestream The name of an OLE stream variable that has been opened. variable The name of a string variable into which want to read data from olestream. stopforline (optional) A…
Syntax 1: For setting a series’ colors – PB Docs 2017
Syntax 1: For setting a series’ colors Description Specifies the colors of a series in a graph. Applies to Graph controls in windows and user objects, and graphs in DataWindow controls Syntax
1 |
controlname.SetSeriesStyle ( { graphcontrol, } seriesname, colortype, color ) |
Argument Description controlname The name of the graph in which you want to set the color of a series, or the name…
Syntax 4: For opening an OLE object in memory into a control – PB Docs 2017
Syntax 4: For opening an OLE object in memory into a control Description Opens an OLE object that is in a OLE storage object in memory and loads it into an OLE control. Applies to OLE controls Syntax
1 |
olecontrol.Open ( sourcestorage, substoragename ) |
Argument Description olecontrol The name of the OLE control into which you want to load an…
Syntax 1: For OLE stream objects – PB Docs 2017
Syntax 1: For OLE stream objects Description Moves the read/write pointer to the specified position in an OLE stream object. The pointer is the position in the stream at which the next read or write begins. Applies to OLEStream objects Syntax
1 |
olestream.Seek ( position {, origin } ) |
Argument Description olestream The name of an OLE stream variable that has been…
Syntax 1: For Tab controls – PB Docs 2017
Syntax 1: For Tab controls Description Occurs when another tab is about to be selected. Event ID Event ID Objects pbm_tcnselchanging Tab Arguments Argument Description oldindex Integer by value (the index of the currently selected tab) newindex Integer by value (the index of the tab that is about to be selected) Return Values Long. Return code…
CONNECT – PB Docs 2017
CONNECT SQL statement Description Connects to a specified database. Syntax
1 |
CONNECT {USING TransactionObject}; |
Parameter Description TransactionObject The name of the transaction object containing the required connection information for the database to which you want to connect. This clause is required only for transaction objects other than the default (SQLCA). Usage This statement must be executed before any…
Syntax 5: For TreeView controls – PB Docs 2017
Syntax 5: For TreeView controls Description Inserts an item at a specific level and order in a TreeView control. Applies to TreeView controls Syntax
1 |
treeviewname.InsertItem ( handleparent, handleafter, label, pictureindex ) |
Argument Description treeviewname The name of the TreeView control in which you want to insert an item. handleparent The handle of the item one level above the item you want…
Syntax 2: For saving an OLE control to a file – PB Docs 2017
Syntax 2: For saving an OLE control to a file Description Saves the object in an OLE control in a storage file. Applies to OLE controls Syntax
1 |
olecontrol.SaveAs (OLEtargetfile ) |
Argument Description olecontrol The name of the OLE control containing the object you want to save. OLEtargetfile A string specifying the name of an OLE storage file….
Syntax 1: For CORBA-compliant EAServer components – PB Docs 2017
Syntax 1: For CORBA-compliant EAServer components Description Allows a PowerBuilder client or component to obtain the factory interface of an EAServer component in order to create an instance of the component. Applies to Connection objects, TransactionServer objects Syntax
1 |
objname.Lookup (objectvariable , componentname ) |
Argument Description objname The name of the Connection object used to establish the connection or of…