Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
? CFILEPATH( "test.txt" )
RETURN NIL
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
? CFILEPATH( "test.txt" )
RETURN NIL
Code: Select all
function cFilePath( cPathMask ) // returns path of a filename
local n := RAt( "\", cPathMask ), cDisk
return If( n > 0, Upper( Left( cPathMask, n ) ),;
( cDisk := cFileDisc( cPathMask ) ) + If( ! Empty( cDisk ), "\", "" ) )