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_SessionGetError – PB Docs 2017 – PowerBuilder Library

PBORCA_SessionGetError – PB Docs 2017

PBORCA_SessionGetError

Description

Gets the current error for an ORCA session.

Syntax

Argument

Description

hORCASession

Handle to previously established ORCA
session.

lpszErrorBuffer

Pointer to a buffer in which ORCA will put the
current error string.

iErrorBufferSize

Size of the buffer pointed to by lpszErrorBuffer. The
constant PBORCA_MSGBUFFER provides a suggested buffer size of 256.
It is defined in the ORCA header file PBORCA.H

Return value

None.

Usage

You can call PBORCA_SessionGetError anytime another ORCA function
call results in an error. When an error occurs, functions always return
some useful error code. The complete list of codes is shown in ORCA return codes. However,
you can get ORCA’s complete error message by calling PBORCA_SessionGetError.

If there is no current error, the function puts an empty string (“”)
into the error buffer.

Examples

This example stores the current error message in the string buffer
pointed to by lpszErrorMessage. The size of the buffer was set previously
and stored in dwErrorBufferLen:

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


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