Defining the appearance and behavior of menu items – PB Docs 115
Defining the appearance and behavior of menu items By setting menu properties, you can customize the display of menus in applications that you create with PowerBuilder. You use the Menu painter to change the appearance and behavior of your menu and menu items by choosing different settings in the tab pages in the Properties view….
AcquireValue – PB Docs 125
IPB_Session interface: AcquireValue method Description Clones the data in the PBCallInfo structure and resets the IPB_Value pointer. Syntax
|
1 |
AcquireValue ( IPBValue* <span>value</span> ) |
Argument Description value The value to be returned Return Values IPB_Value*. Examples The AcquireValue method is used to obtain a message argument value. Later, when the value is no longer needed, it is released using ReleaseValue…
IsGlobalVarObject – PB Docs 126
IPB_Session interface: IsGlobalVarObject method Description Returns true if the global variable contains an object; otherwise it returns false. Syntax
|
1 |
IsGlobalVarObject( pbfield <span>fid</span>) |
Argument Description fid The field ID of the global variable Return Values pbboolean. Examples These statements test whether the field identified by fid is a global variable object. If it is, its value is set…
Year – PB Docs 150
Year PowerScript function Description Determines the year of a date value. Syntax
|
1 |
<span>Year</span> ( <span>date</span> ) |
Argument Description date The date from which you want the year Return Values 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…
Creating MobiLink users – PB Docs 150
Creating MobiLink users MobiLink users are not the same as database users. Each type of user resides in a different namespace. MobiLink user IDs can match the names of database users, but there is no requirement that they match. To add a MobiLink user to a remote database in Sybase Central: Connect to Sybase Central…
Copying controls – PB Docs 115
Copying controls You can copy controls within a window or to other windows. All properties of the control, as well as all of its scripts, are copied. You can use this technique to make a copy of an existing control and change what you want in the copy. To copy a control: Select the control….
PBNI Interfaces, Structures, and Methods – PB Docs 125
PBNI Interfaces, Structures, and Methods About this chapter This chapter contains reference information about the classes, structures, and methods of the PowerBuilder Native Interface. Contents Topic Header file contents Class and interface summary IPB_Arguments interface IPB_ResultSetAccessor interface IPB_RSItemData interface IPB_Session interface IPB_Value interface IPB_VM interface IPBX_Marshaler interface IPBX_NonVisualObject interface IPBX_UserObject interface IPBX_VisualObject interface PBArrayInfo structure…
GetSystemGroup – PB Docs 126
IPB_Session interface: GetSystemGroup method Description Returns a PowerBuilder internal system group. Syntax
|
1 |
GetSystemGroup() |
Return Values pbclass or null on error. Usage GetSystemGroup returns the PowerBuilder internal system group, which contains all the system types such as PowerObject, NonVisualObject, Structure, Window, CommandButton, and so on. You can use this system group to obtain a system class….
WorkSpaceHeight – PB Docs 150
WorkSpaceHeight PowerScript function Description Obtains the height of the workspace within the boundaries of the specified window. Controls Window objects Syntax
|
1 |
<span>windowname</span>.<span>WorkSpaceHeight</span> ( ) |
Argument Description windowname The name of the window for which you want the height of the workspace area Return Values Integer. Returns the height of the workspace area in PowerBuilder units in windowname….
Step 1: define the standard class user object – PB Docs 150
Step 1: define the standard class user object To define the standard class user object: Start PowerBuilder. Connect to a database that supports stored procedures. The rest of this procedure assumes you are connected to an Oracle database that contains remote stored procedures on the database server. For instructions on connecting to an Oracle database…