FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour random problem in xBrowse Problem BASE/1004 There is no meth
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
random problem in xBrowse Problem BASE/1004 There is no meth
Posted: Thu May 07, 2020 09:01 AM
Hello,

Some customers report me this error:

Problem BASE/1004 There is no method: ISKINDOF
Args:
[ 1] = U
[ 2] = C TMULTIGET

Stack Calls
===========
Called from: => ISKINDOF( 0 )
Called from: .\source\classes\XBROWSE.PRG => EDITGETKEYDOWN( 15132 )

Offending line:

Code (fw): Select all Collapse
static function EditGetkeyDown( Self, nKey )

   local lMultiGet   := ::oEditGet:IsKindOf( "TMULTIGET" )


I am not able to reproduce it. Maybe you can give me some light.

Thank you.
Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: random problem in xBrowse Problem BASE/1004 There is no meth
Posted: Thu May 07, 2020 10:28 AM
The above error means that oCol:oEditGet is NIL when the function is called.

But this is how this function is used
Code (fw): Select all Collapse
   ::oEditGet:bKeyDown   := { | nKey | EditGetkeyDown( Self, nKey ) }

Logically the function should not execute when oCol:oEditGet itself is NIL.

Let us look into this.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: random problem in xBrowse Problem BASE/1004 There is no meth
Posted: Thu May 07, 2020 10:57 AM
For now, please try making this change in xbrowse.prg

for the lines
Code (fw): Select all Collapse
static function EditGetkeyDown( Self, nKey )

   local lMultiGet   := ::oEditGet:IsKindOf( "TMULTIGET" )
   local lExit       := .f.


Substitute these lines
Code (fw): Select all Collapse
static function EditGetkeyDown( Self, nKey )

   local lMultiGet
   local lExit       := .f.

   if ::oEditGet == nil
      return nil
   endif

   lMultiGet   := ::oEditGet:IsKindOf( "TMULTIGET" )
Regards



G. N. Rao.

Hyderabad, India
Posts: 838
Joined: Wed Aug 22, 2007 10:09 AM
Re: random problem in xBrowse Problem BASE/1004 There is no meth
Posted: Thu May 07, 2020 04:55 PM

Thank you very much!

Saludos / Regards,



FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40

Continue the discussion