ERROR function FW_ShowAdoError()

ERROR function FW_ShowAdoError()

Postby Jimmy » Thu Sep 07, 2023 11:02 am

hi,

i got a Error
FiveWin version: FWH 23.04
C compiler version: Microsoft Visual C 19.32.31332 (64-bit)
Windows 10 64 Bits, version: 10.0, Build 19045

Error description: Error BASE/1004 Keine exportierte Methode: ERRORS
Args:
[ 1] = U

Stack Calls
===========
Called from: => ERRORS( 0 )
Called from: .\source\function\ADOFUNCS.PRG => FW_SHOWADOERROR( 0 )
Called from: .\source\function\ADOFUNCS.PRG => FW_ADOTABLEEXISTS( 0 )
Called from: .\source\function\ADOFUNCS.PRG => FW_ADOINDEXES( 0 )

Code: Select all  Expand view  RUN

function FW_ShowAdoError( oCn, lSilent )

   local nErr, oErr, cErr

   DEFAULT oCn := soCn, lSilent := .f.

   if ( nErr := oCn:Errors:Count ) > 0
      oErr  := oCn:Errors( nErr - 1 )
      if ! lSilent

IMHO it must be "oCn:Error" without "s"
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: ERROR function FW_ShowAdoError()

Postby nageswaragunupudi » Thu Sep 07, 2023 11:28 am

IMHO it must be "oCn:Error" without "s"

Ofcourse, NO. Errors is correct

If you read the error log again, you will see that the error is becase oCn is NIL.

That means in the function call FW_ADOINDEXES( oCn, cTable ), oCn must have been NIL.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: ERROR function FW_ShowAdoError()

Postby Jimmy » Thu Sep 07, 2023 11:52 am

hi,
nageswaragunupudi wrote:Ofcourse, NO. Errors is correct

If you read the error log again, you will see that the error is becase oCn is NIL.

That means in the function call FW_ADOINDEXES( oCn, cTable ), oCn must have been NIL.

Ok you are right, sorry
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests