In FWH ver 1907
this command:
Code: Select all
local cCode := 'C1234,11''
FW_DbfSqlQuery( "c:\Archivi\", "SELECT COUNT(*) FROM ( SELECT CODART FROM ORDINI WHERE CODART = '"+cCode+"')" )
the same command with FWH 1906 returns Nil value...
why?
Code: Select all
local cCode := 'C1234,11''
FW_DbfSqlQuery( "c:\Archivi\", "SELECT COUNT(*) FROM ( SELECT CODART FROM ORDINI WHERE CODART = '"+cCode+"')" )
Code: Select all
function FW_DbfSqlQuery( cFullPath, cSql, lExecute, lAsRecSet, lCompact )
local uRet
local cAlias, cTable := "", cFolder, nAt
local oCn, oRs
if cFullPath == nil
if !Empty( cAlias := Alias() )
cFullPath := DBINFO( DBI_FULLPATH )
endif
endif
if Empty( cFullPath )
cFullPath := ".\"
endif
cFullPath := TrueName( cFullPath )
cFolder := cFilePath( cFullPath )
if Right( cFullPath, 1 ) != '\'
cTable := cFileNoExt( cFullPath )
endif
oCn := FW_OpenAdoConnection( cFolder )
if oCn == nil
return nil <============== WITH 19.06 EXIT HERE
endif