the error
- Code: Select all Expand view
- Application
===========
Path and name: C:\Work\Prg\proMag\ProMag.Exe (32 bits)
Size: 4,915,200 bytes
Compiler version: Harbour 3.2.0dev (r2008190002)
FiveWin version: FWH 22.03
C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 45 secs
Error occurred at: 14-03-2023, 09:37:53
Error description: Error DBCMD/2001 Workarea not in use: ORDKEYCOUNT
Stack Calls
===========
Called from: => ORDKEYCOUNT( 0 )
Called from: .\source\classes\DATABASE.PRG => TUNMISURA:HB_EXECFROMARRAY( 0 )
Called from: .\source\classes\DATABASE.PRG => TUNMISURA:ORDKEYCOUNT( 1622 )
Called from: source\tabelle\PUnMisura.prg => (b)UNITAMISURA( 77 )
Called from: .\source\classes\WINDOW.PRG => TBAR:AEVALWHEN( 3020 )
Called from: .\source\classes\WINDOW.PRG => TDIALOG:AEVALWHEN( 3030 )
Called from: .\source\classes\CONTROL.PRG => (b)TCONTROL( 146 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:CLICK( 0 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK( 716 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 999 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1845 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 2051 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3560 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1097 )
Called from: source\sistema\Main.prg => TAPPLICATION:ACTIVATE( 261 )
Called from: source\sistema\Main.prg => MAIN( 31 )
at line 77 of UNITAMISURA I have this
DEFINE BUTTON OF oBarDialog PROMPT "Modifica" RESOURCE "MOD_REC";
ACTION Edit_UnMisura(oBrw,2,oDlg,oMisura) GROUP WHEN oMisura:OrdKeyCount() > 0
I explain you how I made on the function
function UnitaMisura()
...
oMisura:=TUnMisura():New()
oMisura:setorder(1)
oMisura:Gotop()
DEFINE DIALOG oDlg.....
DEFINE BUTTONBAR oBarDialog ....
DEFINE BUTTON OF oBarDialog PROMPT "Modifica" RESOURCE "MOD_REC";
ACTION Edit_UnMisura(oBrw,2,oDlg,oMisura) GROUP WHEN oMisura:OrdKeyCount() > 0
@ 10, 165 GET oGet VAR cSeek......
@ 110,10 XBROWSE oBrw SIZE -10,-10 PIXEL......
@ 10, 550 COMBOBOX oBrw:oSortCbx....
ACTIVATE DIALOG oDlg CENTER NOWAIT;
VALID Chiudi_Dbf(oMisura)
return nil
STATIC FUNCTION Chiudi_Dbf(oMisura)
oMisura:Close()
RETURN .t.
I have tried to recreate the error many times but failed
it doesn't always do it, how can I intercept it?