FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Use command error DbUseArea()?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Use command error DbUseArea()?
Posted: Thu Aug 24, 2006 03:20 AM

Dear All,

I just bought FWPPC and try an example but the USE command to open database file (DBFCDX) doesn't work. What is my mistake? The error message is "Open error; Stack Call; DbUseArea(0)"

Best regards
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Use command error DbUseArea()?
Posted: Thu Aug 24, 2006 07:06 AM

Dutch,

What FWPPC sample are you testing ?

Please notice that you have to specify the CurDir():

USE ( CurDir() + "\Customer" ) VIA "DBFCDX"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
My example
Posted: Thu Aug 24, 2006 08:52 AM

Dear Antonio,

This is my first test prg.

include "Fwce.ch"

--------------
FUNCTION MAIN()

LOCAL oWnd, oBmp

LOCAL cVar1 := SPACE( 20 ) 
LOCAL cVar2 := SPACE( 20 )

// HB_LANGSELECT( "ESWIN" )
SET DELETED ON
SET DATE TO BRITISH
SET SOFTSEEK ON
SET CENTURY ON
SET EPOCH TO 2000

Request DbfCdx
Request DbfFpt
RddSetDefault ('DbfCdx')

Use (CURDIR()+"\CCRTBL") VIA "DBFCDX" NEW

DEFINE WINDOW oWnd

@ 1, 1 SAY "Table No. :"; 
       SIZE 70, 20

@ 1, 10 GET cVar1; 
        SIZE 70, 20

@ 80,15 BTNBMP FILENAME CURDIR() + "\Open.bmp" ; //     'Open' ;
    SIZE 60, 40 ;
    ACTION MsgInfo('Open Table : '+rtrim(cVar1) )

@ 80,90 BTNBMP FILENAME CURDIR() + "\Exit.bmp" ; //     'Open' ;
    SIZE 60, 40 ;
    ACTION if(MsgYesNo('Exit Program','Select Options'), oWnd:End(), )

ACTIVATE WINDOW oWnd

DbCloseAll()
RETURN NIL

Best regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
I've got it.
Posted: Thu Aug 24, 2006 10:03 AM

Dear Antonio,

I'm missing a database file in emulator path. Sorry, It works fine now.

Best regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Use command error DbUseArea()?
Posted: Thu Aug 24, 2006 10:15 AM

Dutch,

Glad to know its working fine :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion