error on indices with xbrowse active

error on indices with xbrowse active

Postby Silvio.Falconi » Mon Apr 01, 2013 7:15 pm

On an Old app with a wnd and a xbrowse( old xbrowse from OdZ) I made an indices from buttonbar when was active a xbrowse
Only I not have the source code and I not remember how I made it ( I have the exe)

Now it is no possible why ?


the error



Code: Select all  Expand view
Application
===========
   Path and name: C:\Work\Errori\INDEX_XBROWSE\test.Exe (32 bits)
   Size: 2,161,152 bytes
   Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6715)
   FiveWin  Version: FWHX 12.03
   Windows version: 6.1, Build 7600

   Time from start: 0 hours 0 mins 1 secs
   Error occurred at: 04/01/13, 21:07:34
   Error description: Error DBCMD/2001  Workarea not in use: ORDKEYCOUNT

Stack Calls
===========
   Called from:  => ORDKEYCOUNT( 0 )
   Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE:SETRDD( 3800 )
   Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE:TXBROWSE( 407 )
   Called from:  => TXBROWSE:KEYCOUNT( 0 )
   Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:REFRESH( 1182 )
   Called from: test.prg => INDICES( 60 )
   Called from: test.prg => (b)TEST( 26 )
   Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK( 465 )
   Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 656 )
   Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1690 )
   Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 1408 )
   Called from: .\source\classes\WINDOW.PRG => _FWH( 3153 )
   Called from:  => WINRUN( 0 )
   Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 980 )
   Called from: test.prg => TEST( 34 )




the test


Code: Select all  Expand view
#include "fivewin.ch"
#include "xbrowse.ch"
#include "ord.ch"

REQUEST DBFCDX

Static oWnd

Function Test()
Local oBrw

  RDDSETDEFAULT( "DBFCDX" )

USE C:\work\FWH\SAMPLES\CUSTOMER


 DEFINE FONT oFont NAME 'Tahoma' SIZE 0, -14

  DEFINE WINDOW oWnd FROM 1, 1 TO 20, 75 ;
      TITLE "test Index  on xbrowse" ;
      MENU  BuildMenu()

DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007
   
 DEFINE BUTTON OF oBar ACTION Indices(oBrw);
      RESOURCE "Index" PROMPT "Index"

    @ 0, 0 XBROWSE oBrw OF oWnd ALIAS "Customer"

      oBrw:CreateFromCode()

      oWnd:oClient = oBrw

   ACTIVATE WINDOW oWnd
RELEASE FONT oFont
return nil





function BuildMenu()

   local oMenu
   
   MENU oMenu
      MENUITEM "&One"
      MENUITEM "&Two"
      MENUITEM "&Three"
   ENDMENU
   
return oMenu  




Function Indices( oBrw)
USE C:\work\FWH\SAMPLES\CUSTOMER  ALIAS CUST
INDEX ON CITY TAG CITY TO cust
          oBrw:refresh()
return nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: error on indices with xbrowse active

Postby FranciscoA » Mon Apr 01, 2013 8:55 pm

On an Old app with a wnd and a xbrowse( old xbrowse from OdZ) I made an indices from buttonbar when was active a xbrowse
Only I not have the source code and I not remember how I made it ( I have the exe)

Now it is no possible why ?


Silvio:

Function Indices( oBrw)
USE C:\work\FWH\SAMPLES\CUSTOMER  ALIAS CUST
INDEX ON CITY TAG CITY TO cust
oBrw:cAlias := "CUST" // <--- here, because you has changed the oBrw:cAlias from "CUSTOMER" to "CUST"
          oBrw:refresh()
return nil

Regards.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2158
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: error on indices with xbrowse active

Postby Silvio.Falconi » Mon Apr 01, 2013 9:56 pm

Gulp... sorry it is my mistake....
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Antonio Linares, Google [Bot] and 89 guests