Page 1 of 1

FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006

Posted: Wed May 16, 2007 2:37 pm
by PAUL SIMM
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.

Posted: Wed May 16, 2007 5:16 pm
by Antonio Linares
Paul,

You may use this function from FWH:

function lIsDir( cDirName ) // Checks an existing directory

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