Powerbuilder Documentation 2018

Powerbuilder Documentation 2018

Randomize – PB Docs 2018

Randomize PowerScript function Description Initializes the random number generator so that the Rand function begins a new series of pseudorandom numbers. Syntax

Argument Description n The starting value (seed) for the random number generator. When n is 0, PowerBuilder takes the seed from the system clock and begins a nonrepeatable sequence. A nonzero number generates a…

PowerTipText – PB Docs 2018

PowerTipText property for PowerScript controls Applies to InkPicture, Picture, PictureButton, and PictureHyperlink controls, and UserObjects with tab pages Description Displays a PowerTip when the user moves a cursor over the control or over the tab area of the tab page. Usage In a painter To set the PowerTip: In the Window painter, display the General…

PostURL – PB Docs 2018

PostURL PowerScript function Description Performs an HTTP Post, allowing a PowerBuilder application to send a request through CGI, NSAPI, or ISAPI. Applies to Inet objects Syntax

Argument Description servicereference Reference to the Internet service instance. urlname String specifying the URL to post. urldata Blob specifying arguments to the URL specified by urlname. headers String…

Populating a graph with data – PB Docs 2018

Populating a graph with data This section shows how you can populate an empty graph with data. Using AddSeries You use AddSeries to create a series. AddSeries has this syntax:

AddSeries returns an integer that identifies the series that was created. The first series is numbered 1, the second is 2, and so on. Typically you…

PaperWidth – PB Docs 2018

PaperWidth property for PowerScript controls Applies to RichTextEdit Description Sets the value for the display width of pages inside the control. Usage By default, the value you set for display width is multiplied by 1/1000 of an inch. An application user can change the display units at runtime when you enable the PopMenu property of…

PaperHeight – PB Docs 2018

PaperHeight property for PowerScript controls Applies to RichTextEdit Description Sets the value for the display height of pages inside the control. Usage By default, the value you set for display height is multiplied by 1/1000 of an inch. An application user can change the display units at runtime when you enable the PopMenu property of…

PictureListBox control – PB Docs 2018

PictureListBox control A PictureListBox displays available options or values, which can include pictures. If more options or values exist than can display in the PictureListBox at one time or the text exceeds the width of the PictureListBox, the PictureListBox has one or two (vertical or horizontal) scroll bars. PictureListBox controls can contain images in the…

PipeEnd – PB Docs 2018

PipeEnd PowerScript event Description Occurs when pipeline processing is completed. Event ID Event ID Objects pbm_pipeend Pipeline Arguments None Return Values Long. Return code choices (specify in a RETURN statement): 0 — Continue processing Usage You can use the PipeEnd event to check the status of pipeline processing. The Start and Repair functions initiate pipeline processing….

OLE controls in a window – PB Docs 2018

OLE controls in a window You can add OLE objects and ActiveX controls to a window or user object. To do so, you use one of the PowerBuilder OLE controls, which acts as an OLE container. This section explains how you select the control you want by choosing whether it holds an OLE object (also…

OLE objects in scripts – PB Docs 2018

OLE objects in scripts Contents The automation interface Automation and the Any datatype OLEObjects for efficiency Handling errors Creating hot links Setting the language for OLE objects and controls Low-level access to the OLE object OLE objects in DataWindow objects This chapter has described the three ways to use OLE in a window or user…