PdcApplication.LastError
Declaration
LastError as String
Description
Returns last errorstring created by PdC.
Notes
Returns the last reported PdC error. Not set for all userexits though.
Code example
This code example returns the error code of an incorrect SQL execute in PdC.
Sub sRunSQLStatement
dim objQuery
set objQuery = pdc.Database.OpenQuery(pdcConData)
objQuery.SQL = "this is not correct SQL"
if objQuery.Execute then
else
msgbox pdc.LastError
end if
set objQuery = nothing
End Sub
Availability
Available since January 2002.(From version 2.7)