random problem in xBrowse Problem BASE/1004 There is no meth

random problem in xBrowse Problem BASE/1004 There is no meth

Postby MOISES » Thu May 07, 2020 9: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: Select all  Expand view
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
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: random problem in xBrowse Problem BASE/1004 There is no meth

Postby nageswaragunupudi » 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: Select all  Expand view
  ::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
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: random problem in xBrowse Problem BASE/1004 There is no meth

Postby nageswaragunupudi » Thu May 07, 2020 10:57 am

For now, please try making this change in xbrowse.prg

for the lines
Code: Select all  Expand view
static function EditGetkeyDown( Self, nKey )

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


Substitute these lines
Code: Select all  Expand view
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
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: random problem in xBrowse Problem BASE/1004 There is no meth

Postby MOISES » Thu May 07, 2020 4:55 pm

Thank you very much!
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 64 guests