FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC How does File() work?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How does File() work?
Posted: Mon Aug 28, 2006 06:29 PM

Dear All,

I try to check database file is exist or not buy use file() but I don't know how to success.

  • File( "TEST.DBF" ) is not working
  • File( CURDIR()+"\TEST.DBF" ) is not working
  • File( "\"+CURDIR()+"\TEST.DBF" ) is not working

Thank you for any idea.

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: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: How does File() work?
Posted: Mon Aug 28, 2006 06:49 PM
dutch wrote:Dear All,

I try to check database file is exist or not buy use file() but I don't know how to success.

- File( "TEST.DBF" ) is not working
- File( CURDIR()+"\TEST.DBF" ) is not working
- File( ""+CURDIR()+"\TEST.DBF" ) is not working

Thank you for any idea.

Best regards,
Dutch


Dutch

FILE(CURDIR() + "\TEST.DBF") IS THE CORRECT SYNTAX.

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How does File() work?
Posted: Mon Aug 28, 2006 06:54 PM

Dear Richard,

I try this FILE(CURDIR()+"\TEST.DBF") on my SD card in PPC but it return .F.

CURDIR()+"\TEST.DBF" = "Storage Card\TEST.DBF"

It doesn't work.

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: 946
Joined: Thu Oct 06, 2005 07:05 PM
How does File() work?
Posted: Mon Aug 28, 2006 08:21 PM
dutch wrote:Dear Richard,

I try this FILE(CURDIR()+"\TEST.DBF") on my SD card in PPC but it return .F.

CURDIR()+"\TEST.DBF" = "Storage Card\TEST.DBF"

It doesn't work.

Best regards,
Dutch


It works with my ppc app. i use the file(...) several times.

make sure your test.txt is on the root of the sd card, if not

IF FILE(CURDIR() + "\whatever\test.txt")
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
It works on PPC but not work on Emulator
Posted: Tue Aug 29, 2006 05:11 AM

Dear Richard,

Thanks, I try on the Emulator and It doesn't work. But I try again in my PPC, It work ok.

Thanks&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)

Continue the discussion