RevertToSelf – PB Docs 2019
RevertToSelf PowerScript function Description Restores the security attributes for a COM object that is running on COM+ and impersonating the client. Applies to TransactionServer objects Syntax
1 |
transactionserver.RevertToSelf ( ) |
Argument Description transactionserver Reference to the TransactionServer service instance Return value Integer. Returns 1 if it succeeds and -1 if an error occurs. Usage COM objects running on…
RightToLeft – PB Docs 2019
RightToLeft property for PowerScript controls Applies to Application and Window objects, and CheckBox, DataWindow, DatePicker, DropDownListBox, DropDownPictureListBox, EditMask, GroupBox, InkEdit, ListBox, ListView, MonthCalendar, MultiLineEdit, PictureListBox, RadioButton, SingleLineEdit, StaticHyperLink, StaticText, and TreeView controls Description The RightToLeft property specifies that characters should be displayed in right-to-left order. The application must be running on an operating system that…
Reading values from an external file – PB Docs 2019
Reading values from an external file Using external files Often you want to set the Transaction object values from an external file. For example, you might want to retrieve values from your PowerBuilder initialization file when you are developing the application or from an application-specific initialization file when you distribute the application. ProfileString function You…
RegistrySet – PB Docs 2019
RegistrySet PowerScript function Description Sets the value for a key and value name in the system registry. If the key or value name does not exist, RegistrySet creates a new key or name and sets its value. Syntax
1 |
RegistrySet ( key, valuename, valuetype, value ) |
Argument Description key A string whose value names the key in the system registry whose value…
RemoveDirectory – PB Docs 2019
RemoveDirectory PowerScript function Description Removes a directory. Syntax
1 |
RemoveDirectory ( directoryname ) |
Argument Description directoryname String for the name of the directory you want to remove. If you do not specify an absolute path, this function deletes relative to the current working directory. Return value Integer. Returns 1 if the function succeeds and -1 if an error occurs….
Restart – PB Docs 2019
Restart PowerScript function Description Stops the execution of all scripts, closes all windows (without executing the scripts for the Close events), commits and disconnects from the database, restarts the application, and executes the application-level script for the Open event. Syntax
1 |
Restart ( ) |
Return value Integer. Returns 1 if it succeeds and -1 if it fails. The…
ResetPicture – PB Docs 2019
ResetPicture PowerScript function Description Clears a picture from an InkPicture control. Applies to InkPicture controls Syntax
1 |
inkpicname.ResetPicture ( ) |
Argument Description inkpicname The name of the InkPicture control from which you want to clear a picture. Return value Integer. Returns 1 for success and -1 for failure. Usage Use the ResetInk function to clear the image from…
Randomize – PB Docs 2019
Randomize PowerScript function Description Initializes the random number generator so that the Rand function begins a new series of pseudorandom numbers. Syntax
1 |
Randomize ( n ) |
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…
PrintY – PB Docs 2019
PrintY PowerScript function Description Reports the y coordinate of the print cursor. Syntax
1 |
PrintY ( printjobnumber ) |
Argument Description printjobnumber The number the PrintOpen function assigned to the print job Return value Integer. Returns the y coordinate of the cursor if it succeeds and -1 if an error occurs. If any argument’s value is null, PrintY returns null….
PrintLine – PB Docs 2019
PrintLine PowerScript function Description Draws a line of a specified thickness between the specified endpoints on the current print page. Syntax
1 |
PrintLine ( printjobnumber, x1, y1, x2, y2, thickness ) |
Argument Description printjobnumber The number the PrintOpen function assigned to the print job x1 An integer specifying the x coordinate in thousandths of an inch of the start of the line y1 An…