Powerbuilder Documentation 2021

Powerbuilder Documentation 2021

About the examples – PB Docs 2021

About the examples The examples in this chapter assume that a structure was set up to store information about the ORCA session when the session was opened. In the examples, the variable lpORCA_Info is a pointer to an instance of this structure:

Document get from Powerbuilder help Thank you for watching.

Static calls – PB Docs 2021

Static calls By default, PowerBuilder makes static lookups for functions and events. This means that it identifies the function or event by matching the name and argument types when it compiles the code. A matching function or event must exist in the object at compile time. Results of static calls Static calls do not guarantee…

ORCA and the Library painter – PB Docs 2021

ORCA and the Library painter Contents Objects in a PowerBuilder library Object source code PowerBuilder commands and ORCA functions A PowerBuilder library (PBL) is a binary file. It stores objects you define in the PowerBuilder painters in two forms: source and compiled. The source for an object is text. The compiled form is binary and…

About shared database profiles – PB Docs 2021

About shared database profiles You can share database profiles in the PowerBuilder development environment by specifying the location of a file containing the profiles you want to share. You specify this location in the Database Preferences dialog box in the Database painter. Where to store a shared profile file To share database profiles among all…

ORCA return codes – PB Docs 2021

ORCA return codes The header file PBORCA.H defines these return codes: Return code Description 0 PBORCA_OK Operation successful -1 PBORCA_INVALIDPARMS Invalid parameter list -2 PBORCA_DUPOPERATION Duplicate operation -3 PBORCA_OBJNOTFOUND Object not found -4 PBORCA_BADLIBRARY Bad library name -5 PBORCA_LIBLISTNOTSET Library list not set -6 PBORCA_LIBNOTINLIST Library not in library list -7 PBORCA_LIBIOERROR Library I/O error…

Stopping the Database Trace tool – PB Docs 2021

Stopping the Database Trace tool Contents Stopping Database Trace in the development environment Stopping Database Trace in a PowerBuilder application Once you start tracing a particular database connection, PowerBuilder continues sending trace output to the log until you do one of the following: Reconnect to the same database with tracing stopped Connect to another database…

Callback function for compiling objects – PB Docs 2021

Callback function for compiling objects Description Called for each error that occurs when objects in a library are compiled so that the errors can be stored for later display. Functions that use this callback format are: PBORCA_ApplicationRebuild PBORCA_CompileEntryImport PBORCA_CompileEntryImportList PBORCA_CompileEntryRegenerate Syntax

Argument Description PPBORCA_COMPERR Pointer to the structure PBORCA_COMPERR (described next) LPVOID Long pointer…

Setting database parameters in a PowerBuilder application script – PB Docs 2021

Setting database parameters in a PowerBuilder application script Contents Copying DBParm syntax from the Preview tab Coding PowerScript to set values for the DBParm property Reading DBParm values from an external text file If you are developing an application that connects to a database, you must specify the required connection parameters in the appropriate script…

GetAt – PB Docs 2021

GetAt Description Returns a pointer to the IPB_Value interface representing an argument whose order in the list of arguments is indicated by a specified index. Syntax

Argument Description index A valid index into the PBCallInfo structure Return value IPB_Value* Examples In the following code fragment, GetAt obtains the first value in the PBCallInfo structure….

Copying AutoCommit and Lock syntax from the Preview tab – PB Docs 2021

Copying AutoCommit and Lock syntax from the Preview tab The easiest way to specify AutoCommit and Lock in a PowerBuilder application script is to copy the PowerScript syntax from the Preview tab in the Database Profile Setup dialog box into your script, modifying the default Transaction object name (SQLCA) if necessary. As you complete the…