FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006

Post Reply
User avatar
PAUL SIMM
Posts: 63
Joined: Fri Oct 07, 2005 7:59 am
Location: Madrid, Spain
Contact:

FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006

Post 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.
Regards/Saludos
Paul

paul@pes-systems.net
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
Post Reply