FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006

FUNCTION FILE() STOPED WORING AFTER UPGRADING HARBOUR 2006

Postby PAUL SIMM » Wed May 16, 2007 2: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
User avatar
PAUL SIMM
 
Posts: 85
Joined: Fri Oct 07, 2005 7:59 am
Location: Madrid, Spain

Postby Antonio Linares » Wed May 16, 2007 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42100
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 102 guests