PB Docs 126

Syntax 1 For DateTime and blob values – PB Docs 126

Syntax 1 For DateTime and blob values Description Extracts a time value from a DateTime value or a blob. Syntax

Argument Description datetime A DateTime value or a blob in which the first value is a time or DateTime value. The rest of the contents of the blob is ignored. Datetime can also be an…

Creating a .NET Windows Forms Project – PB Docs 126

Creating a .NET Windows Forms Project You can create a project to deploy the application in the target wizard or by using the .NET Windows Forms wizard on the Project page of the New dialog box. On the Specify Project Information page, specify the name of the project and the library in which the project…

.NET Windows Forms Target Wizard – PB Docs 126

.NET Windows Forms Target Wizard Use the .NET Windows Forms Application wizard on the Target page in the New dialog box to create a Windows Forms application and target, and optionally a project. The project lets you deploy the PowerBuilder application to the file system or, if you select the smart client option, to publish…

Show – PB Docs 126

Show PowerScript function Description Makes an object or control visible, if it is hidden. If the object is already visible, Show brings it to the top. Controls Any object Syntax

Argument Description objectname The name of the object or control you want to make visible (show) Return Values Integer. Returns 1 if it succeeds…

Deploying to a production environment – PB Docs 126

Deploying to a production environment The simplest way to deploy a Window Forms application to a production environment is to use smart client deployment. If you cannot or do not want to use smart client deployment, use the following procedure to install the application. Install .NET Framework 2.0, 3.0, or 3.5 on the target computer….

SystemRoutine – PB Docs 126

SystemRoutine PowerScript function Description Provides the routine node representing the system root in a performance analysis model. Controls Profiling object Syntax

Argument Description instancename Instance name of the Profiling object. theroutine A value of type ProfileRoutine containing the routine node representing the system root. This argument is passed by reference. Return Values ErrorReturn. Returns…

Sleep – PB Docs 126

Sleep PowerScript function Description Causes the application to pause for a specified time. Syntax

Argument Description seconds Long for the number of seconds you want the application to pause Return Values Integer. Returns 1 if the function succeeds and -1 if an error occurs. Examples This example pauses the application for 5 seconds:

String_To_Object – PB Docs 126

String_To_Object PowerScript function Description Gets an object reference based on a passed string. This function is used by PowerBuilder clients connecting to EAServer. Controls JaguarORB objects Syntax

Argument Description jaguarorb An instance of JaguarORB. objstring A string that represents a CORBA object. The string representation of a CORBA object is an Interoperable Object Reference…

SharedObjectGet – PB Docs 126

SharedObjectGet PowerScript function Description Gets a reference to a shared object instance. Syntax

Argument Description instancename The name of a shared object instance to which you want to obtain references. The name you specify must match the name given to the object instance when it was first registered with the SharedObjectRegister function. objectinstance An…

CHOOSE CASE – PB Docs 126

CHOOSE CASE Description A control structure that directs program execution based on the value of a test expression (usually a variable). Syntax

Parameter Description testexpression The expression on which you want to base the execution of the script expressionlist One of the following expressions: A single value A list of values separated by commas…