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

Post Reply
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

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

Post by MOISES »

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

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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

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

Post by nageswaragunupudi »

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

   ::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: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

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

Post by nageswaragunupudi »

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

for the lines

Code: Select all

static function EditGetkeyDown( Self, nKey )

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

Code: Select all

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
MOISES
Posts: 824
Joined: Wed Aug 22, 2007 10:09 am

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

Post by MOISES »

Thank you very much!
Saludos / Regards,

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