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

GetLastError (obsolete) – PB Docs 2022 – PowerBuilder Library

GetLastError (obsolete) – PB Docs 2022

GetLastError (obsolete)

Description

Returns the error code of the last database error that occurred in
the Web DataWindow server component.

Obsolete method

GetLastError is obsolete and should not be used, because the Web
DataWindow technology is obsolete.

Applies to

DataWindow type

Method applies to

Web

Server component

Syntax

Web DataWindow server
component

Argument

Description

dwcontrol

A reference to the DataWindow server
component

Return value

Returns a numeric error code for the last database error that
occurred.

If dwcontrol is null, the method returns null.

Usage

Call GetLastError and GetLastErrorString to get information about
database errors that caused SetAction, Update, Retrieve, and RetrieveEx to
return -1.

Examples

This code in a page server script calls Retrieve for the Web
DataWindow server component called dwComponent and gets information about
the database error if Retrieve fails:

See also

GetLastErrorString

Retrieve

Update


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