Syntax 2: For scatter graphs – PB Docs 2017
Syntax 2: For scatter graphs Description Changes the value of a data point in a series on a graph. You specify the data point by position and provide an x and y value. Applies to Graph controls in windows and user objects. Does not apply to graphs within DataWindow objects (their data comes directly from…
Year – PB Docs 2017
Year PowerScript function Description Determines the year of a date value. Syntax
1 |
Year ( date ) |
Argument Description date The date from which you want the year Return value Integer. Returns an integer whose value is a 4-digit year adapted from the year portion of date if it succeeds and 1900 if an error occurs. If date is null, Year returns…
Syntax 1: For OLETxnObject objects – PB Docs 2017
Syntax 1: For OLETxnObject objects Description Declares that the current transaction should be rolled back. Applies to OLETxnObject objects Syntax
1 |
oletxnobject.SetAbort (  ) |
Argument Description oletxnobject The name of the OLETxnObject variable that is connected to the COM object Return value Integer. Returns 1 if it succeeds and -1 if an error occurs. Usage Call the SetAbort function…
Comments – PB Docs 2017
Comments Description You can use comments to document your scripts and prevent statements within a script from executing. There are two methods. Syntax Double-slash method
1 |
Code // Comment |
Slash-and-asterisk method
1 |
/*      Comment       */ |
Usage The following table shows how to use each method. Method Marker Can use to Note Double slash // Designate all text on the line to…
Syntax 1: For docked toolbars – PB Docs 2017
Syntax 1: For docked toolbars Description Sets the position of a docked toolbar. Applies to MDI frame and sheet windows Syntax
1 |
window.SetToolbarPos ( toolbarindex, dockrow, offset, insert ) |
Argument Description window The MDI frame or sheet to which the toolbar belongs. toolbarindex An integer whose value is the index of the toolbar whose settings you want to change. dockrow An integer…
Syntax 2: For strings – PB Docs 2017
Syntax 2: For strings Description Converts a string whose value is a valid date to a date value. Syntax
1 |
Date ( string ) |
Argument Description string A string containing a valid date (such as January 1, 2002, or 12-31-99) that you want returned as a date. Datetime can also be an Any variable containing a string. Return value Date….
Syntax 2: For TransactionServer objects – PB Docs 2017
Syntax 2: For TransactionServer objects Description Declares that the transaction in which a component is participating should be committed and the component instance should be deactivated. Applies to TransactionServer objects Syntax
1 |
transactionserver.SetComplete (  ) |
Argument Description transactionserver Reference to the TransactionServer service instance Return value Integer. Returns 1 if it succeeds and -1 if an error occurs….
Syntax 1: For ListBox and DropDownListBox controls – PB Docs 2017
Syntax 1: For ListBox and DropDownListBox controls Description Inserts an item into the list of values in a list box. Applies to ListBox and DropDownListBox controls Syntax
1 |
listboxname.InsertItem ( item,  index ) |
Argument Description listboxname The name of the ListBox or DropDownListBox into which you want to insert an item item A string whose value is the text of…
Syntax 2: For floating toolbars – PB Docs 2017
Syntax 2: For floating toolbars Description Sets the position and size of a floating toolbar. Applies to MDI frame and sheet windows Syntax
1 |
window.SetToolbarPos ( toolbarindex, x, y, width, height ) |
Argument Description window The MDI frame or sheet to which the toolbar belongs toolbarindex An integer whose value is the index of the toolbar whose settings you want to change x…
Syntax 2: For windows of unknown datatype – PB Docs 2017
Syntax 2: For windows of unknown datatype Description Opens a window object when you do not know its datatype until the application is running. OpenWithParm displays the window and makes all its properties and controls available to scripts. It also stores a parameter in the system’s Message object. Applies to Window objects Syntax
1 |
OpenWithParm ( windowvar, parameter, windowtype {, parent } ) |
Argument Description…