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_ConfigureSession – PB Docs 2022 – PowerBuilder Library

PBORCA_ConfigureSession – PB Docs 2022

PBORCA_ConfigureSession

Description

PBORCA_ConfigureSession facilitates backward compatibility with
PowerBuilder 10. It increases the flexibility of the API and minimizes the
changes necessary to other ORCA function signatures.

Syntax

Argument

Description

hORCASession

Handle to previously established ORCA
session.

pSessionConfig

Structure that lets the ORCA client specify the
behavior of subsequent requests. Settings remain in effect for the
duration of the session or until you call PBORCA_ConfigureSession
again. Be sure to specify all of the settings each time you call
PBORCA_ConfigureSession.

Return value

INT. Typical return codes are:

Return code

Description

0 PBORCA_OK

Operation successful

-1 PBORCA_INVALIDPARMS

Session not open or null pConfig
pointer

Usage

Create an instance of a PBORCA_CONFIG_SESSION structure and populate
it with your configuration settings. Then call PBORCA_ConfigureSession
immediately after SessionOpen. You can also call this function anytime
thereafter to reset configuration properties.

Member variable

Description

eClobber

Specifies when to overwrite existing files on the
file system. This property is used
by:

PBORCA_LibraryEntryExport

PBORCA_LibraryEntryExportEx

PBORCA_DynamicLibraryCreate

PBORCA_ExecutableCreate

PBORCA_LibraryDelete

You
can set any of the following eClobber values for a configuration
session:

  • PBORCA_NOCLOBBER

    never overwrites an existing file

  • PBORCA_CLOBBER

    overwrites existing files that are not
    write-protected

  • PBORCA_CLOBBER_ALWAYS

    overwrites existing files that are
    write-protected

  • PBORCA_CLOBBER_DECIDED_BY_SYSTEM

    causes the functions mentioned above to behave as they
    did in prior ORCA releases

eExportEncoding

Specifies the source encoding used by
PBORCA_LibraryEntryExport:

  • PBORCA_UNICODE

    default for Unicode ORCA clients

  • PBORCA_ANSI_DBCS

    default for ANSI ORCA clients

  • PBORCA_UTF8

  • PBORCA_HEXASCII

bExportHeaders

If you set this variable to TRUE,
PBORCA_LibraryEntryExport generates export headers. The default
value is FALSE for backward compatibility.

bExportIncludeBinary

If you set this variable to TRUE,
PBORCA_LibraryEntryExport generates the binary component of an
object in addition to the source component. The default value is
FALSE for backward compatibility.

bExportCreateFile

If you set this variable to TRUE,
PBORCA_LibraryEntryExport exports source to a file. The generated
file name is the PowerBuilder object entry name with a .sr? file
extension. The default value is FALSE.

pExportDirectory

Directory where you export PowerBuilder objects if
bExportCreateFile is TRUE.

eImportEncoding

Source encoding. Subsequent calls to
PBORCA_CompileEntryImport and PBORCA_CompileEntryImportList expect
the lpszEntrySyntax argument to contain this
information.

bDebug

If you set this value to FALSE, the DEBUG conditional
compiler directive is turned off. All subsequent methods that
invoke the PowerScript compiler will use this setting when
evaluating script inside DEBUG conditional compilation blocks.
This setting is not used in Windows Forms targets, since
PBORCA_DeployWinFormProject uses a setting in the Project object
of these targets to determine whether to enable or disable the
DEBUG directive.

Examples

This example populates the PBORCA_CONFIG_SESSION structure with
configuration settings:

See also

PBORCA_ApplicationRebuild

PBORCA_CompileEntryImportList

PBORCA_SetDebug


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