FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006
Posts: 86
Joined: Fri Oct 07, 2005 07:59 AM
FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006
Posted: Wed May 16, 2007 02:37 PM

I have just upgraded a program from Harbour2005 to Harbour 2006
The following function has stoped working properly.

IF !FILE('albaran') //directory albaran doese not exist
IF LMKDIR( 'albaran' )
ELSE
msgstop('No se ha podido crear la siguiente carpeta: ALBARAN','ERROR:')
ENDIF
ENDIF

Although the directory exists my latest harbour compilations do not detect the directory FILE('albaran') RETURNS .F.

Regards/Saludos
Paul

paul@pes-systems.net
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006
Posted: Wed May 16, 2007 05:16 PM

Paul,

You may use this function from FWH:

function lIsDir( cDirName ) // Checks an existing directory

return Len( Directory( cDirName, "D" ) ) == 1

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion