lLFNMkDir is not returning neither true nor false

lLFNMkDir is not returning neither true nor false

Postby ellano » Thu Jan 30, 2014 10:41 am

If lLFNMkDir( "c:\This is a test" )
MsgInfo( "Long filename directory created!" )
if lLFNRmDir( "c:\This is a test" )
MsgInfo( "Directory deleted!")
else
MsgAlert( "Can't erase directory" )
endif
else
MsgAlert( "Can't create long filename directory!" )
endif

This command is not working on a Windows 7 64 bits. On the other hand, lMkDir is correctly working AND returning a true or false value
FWH v12

And also MsgWait does not accept CRLF (even if replaced with CHR(13)+CHR(10))
ellano
 
Posts: 107
Joined: Tue Sep 15, 2009 7:52 am

Re: lLFNMkDir is not returning neither true nor false

Postby karinha » Thu Jan 30, 2014 11:37 am

Look command name: cShortName()
Code: Select all  Expand view


   IF .NOT. lIsDir( "C:\MYPDF" )
      lMkDir( UPPER( "C:\MYPDF" ) )
   ENDIF
 


http://ar.groups.yahoo.com/neo/groups/P ... topics/530

Regards,
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7428
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: lLFNMkDir is not returning neither true nor false

Postby ellano » Fri Jan 31, 2014 7:35 am

Thanks, but as I said in the message, the lMkDir IS working. What I need is the long name creation directory command AND the CRLF in the MsgWait command which both have a bug in the FWH library.
ellano
 
Posts: 107
Joined: Tue Sep 15, 2009 7:52 am

Re: lLFNMkDir is not returning neither true nor false

Postby StefanHaupt » Fri Jan 31, 2014 10:22 am

lMkDir () creates directories with long names, there is no need to use lLfnMkDir()

Code: Select all  Expand view
? lMkDir ("d:\Test with long names")  // return .t.

You can also use function MakeDir (<cDir>) from (x)Harbour
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: lLFNMkDir is not returning neither true nor false

Postby ellano » Fri Jan 31, 2014 11:55 am

Thanks Stefan. After 2 hours of testing and pulling my hairs (or what is left of them) off that is what I'm using. Anyway the function is not working as documented. :twisted:

Same happened with MsgWait. Changed to MsgInfo that does accept CRLF. But that is not what I wanted in the 1st place. Maybe no one ever used CRLF in such a message.
ellano
 
Posts: 107
Joined: Tue Sep 15, 2009 7:52 am

Re: lLFNMkDir is not returning neither true nor false

Postby karinha » Fri Jan 31, 2014 1:01 pm

Look in \samples\LONGNAME.PRG

regards,
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7428
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 149 guests