Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PBORCA_SessionSetLibraryList – PB Docs 2022 – PowerBuilder Library

PBORCA_SessionSetLibraryList – PB Docs 2022

PBORCA_SessionSetLibraryList

Description

Establishes the list of libraries for an ORCA session. ORCA searches
the libraries in the list to resolve object references.

Syntax

Argument

Description

hORCASession

Handle to previously established ORCA
session.

*pLibNames

Pointer to an array of pointers to strings. The
values of the strings are file names of libraries. Include the
full path for each library where possible.

iNumberOfLibs

Number of library name pointers in the array
pLibNames points to.

Return value

INT. Typical return codes are:

Return code

Description

0 PBORCA_OK

Operation successful

-1 PBORCA_INVALIDPARMS

Invalid parameter list

-4 PBORCA_BADLIBRARY

Bad library name or a library on the list does not
exist

Usage

You must call PBORCA_SessionSetLibraryList and
PBORCA_SessionSetCurrentAppl before calling any ORCA function that
compiles or queries objects.

Library names should be fully qualified wherever possible.

Changing the library list

You can set the current application and library list only once in a
session. If you need to change either the library list or current
application after it has been set, close the session and open a new
session.

How ORCA uses the library list

ORCA uses the search path to find referenced objects when you
regenerate or query objects during an ORCA session. Just like
PowerBuilder, ORCA looks through the libraries in the order in which they
are specified in the library search path until it finds a referenced
object.

Functions that don’t need a library list

You can call the following library management functions and source
control functions without setting the library list:

PBORCA_LibraryCommentModify

PBORCA_LibraryCreate

PBORCA_LibraryDelete

PBORCA_LibraryDirectory

PBORCA_LibraryEntryCopy

PBORCA_LibraryEntryDelete

PBORCA_LibraryEntryExport

PBORCA_LibraryEntryInformation

PBORCA_LibraryEntryMove

Examples

This example builds an array of library file names for PocketBuilder
and sets the session’s library list:

In these examples, session information is saved in the data
structure ORCA_Info, shown in About the examples.

See also

PBORCA_SessionSetCurrentAppl


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x