Page 1 of 1

WHY...No exported method: END (Error)

Posted: Sun May 17, 2020 8:43 am
by RiazKhan
I don't know why this error occurs...

Error description: Error BASE/1004 No exported method: END

When I check my clients' user error log. I see many frequent errors with application terminated "No exported method: END"
What and how is this an error and how to fix this.....??

My source is as follows:

DEFINE DIALOG oGrns RESNAME "M_222"
REDEFINE BITMAP ID 9999 OF oGrns RESNAME "16_FBS" TRANSPARENT

REDEFINE LISTBOX (Listbox controls Here)
REDEFINE BUTTON (Buttons actons here )
REDEFINE BUTTON ID 415 OF oGrns ACTION oGrns:End()
ACTIVATE DIALOG oGrns CENTERED VALID (oGrns:=NIL, .T.)


Why this error...???

Application
===========
User Profile: DHA Delivery/OTM-SYS-03
Path and name: D:\NFS\PROGRAMS\FBS_NFS.EXE (32 bits)
Size: 8,893,440 bytes
Compiler
FiveWin
Builder
Windows

Time from start: 0 hours 0 mins 41 secs
Error occurred at: 17/05/2020, 13:16:42
Error description: Error BASE/1004 No exported method: END
Args:
[ 1] = U

Stack Calls
===========
Called from: => END( 0 )
Called from: .\M_222.PRG => (b)M_222( 206 )
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK( 179 )
Called from: .\source\classes\CONTROL.PRG => TBUTTON:HANDLEEVENT( 1781 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3559 )
Called from: => SENDMESSAGE( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND( 433 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 1136 )
Called from: => SYSREFRESH( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:END( 701 )
Called from: .\M_222.PRG => (b)M_222( 206 )
Called from: .\source\internal\SKINS.PRG => FWSKINBTNLBUTTONDOWN( 237 )
Called from: => DIALOGBOX( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 304 )
Called from: .\M_222.PRG => M_222( 209 )
Called from: .\M_22.PRG => M_22( 5 )
Called from: .\M_MAIN.PRG => (b)BUILDTOOLBAR1( 278 )

Re: WHY...No exported method: END (Error)

Posted: Sun May 17, 2020 10:29 am
by Antonio Linares
Riaz,

What source code do you have here ?

Called from: .\M_222.PRG => (b)M_222( 206 )

It seems as you are send :End() to an object that it is already nil

Re: WHY...No exported method: END (Error)

Posted: Sun May 17, 2020 1:57 pm
by nageswaragunupudi
Please remove "oGrns := NIL" in the valid clause.

Re: WHY...No exported method: END (Error)

Posted: Sun May 17, 2020 2:28 pm
by RiazKhan
Thanks All,

I will remove the oGrns:=Nil Valid Clause. In Fact, remove the entire Valid clause. [ VALID (oGrns:=NIL, .T.) ]
And monitor the results...

Regards