Isso que mencionou é ajustável.
Código: Selecionar todos
Set( _SET_FILECASE, 2 ) // Default como Uppercase
Set( _SET_DIRCASE, 2 ) // Default como Uppercase
Moderador: Moderadores

Código: Selecionar todos
Set( _SET_FILECASE, 2 ) // Default como Uppercase
Set( _SET_DIRCASE, 2 ) // Default como Uppercase

Código: Selecionar todos
FUNCTION JPA_File( cFile )
LOCAL lAchou := .t., cFile2
cFile2 := cFile
IF .NOT. ":" $ cFile2
cFile2 := HB_CurDrive() + ":" + cFile2
ENDIF
DO CASE
CASE File( cFile )
CASE File( cFile2 )
WriteErrorLog( "Funcionou File(Drive)", .t. )
MsgExclamation( "Avise a JPA que File( Drive ) funcionou e pra retirar esta mensagem" )
CASE hb_FileExists( cFile )
WriteErrorLog( "Funcionou hb_FileExists(file)", .t. )
MsgExclamation( "Avise a JPA hb_FileExists() funcionou e pra retirar esta mensagem" )
CASE hb_FileExists( cFile2 )
WriteErrorLog( "Funcionou hb_FileExists(Drive)", .t. )
MsgExclamation( "Avise a JPA que hb_FileExists( Drive ) funcionou e pra retirar esta mensagem" )
OTHERWISE
lAchou := .f.
ENDCASE
RETURN lAchou

Código: Selecionar todos
FUNCTION JPA_File( cFile )
LOCAL lAchou := .t., cFile2, cTexto
cFile2 := cFile
IF .NOT. ":" $ cFile2
cFile2 := HB_CurDrive() + ":" + cFile2
ENDIF
DO CASE
CASE File( cFile )
CASE File( cFile2 )
cTexto := "Falhou File(" + cFile + ") e funcionou File(" + cFile2 + ")"
WriteErrorLog( cTexto, .t. )
MsgStop( cTexto )
CASE hb_FileExists( cFile )
cTexto := "Falhou File(" + cFile + "), File(" + cFile2 + ") e funcionou hb_FileExists(" + cFile + ")"
WriteErrorLog( cTexto, .t. )
MsgStop( cTexto )
CASE hb_FileExists( cFile2 )
cTexto := "Falhou File(" + cFile + "), File(" + cFile2 + "), hb_FileExists(" + cFile + ") e funcionou hb_FileExists(" + cFile2 + ")"
WriteErrorLog( cTexto, .t. )
MsgStop( cTexto )
OTHERWISE
lAchou := .f.
ENDCASE
RETURN lAchou