by Rimantas » Mon Nov 21, 2005 1:37 pm
Hello James ! Thanks for your reply . But I found that the problem isn't here . It's cTempFile() function :
function cTempFile() // returns a temporary filename
local cFileName
static cOldName
while File( ( cFileName := StrTran( Time(), ":", "" ) ) ) .or. ;
cFileName == cOldName
end
cOldName = cFileName
return cFileName
This function is without incoming arguments .
METHOD Open() CLASS TDbOdbcDirect
local aFields
local nLen, n
DEFAULT ::cFileName := cTempFile(GetEnv("TEMP"),"DBF") ,;
::cAlias := ""
In TDbOdbcDirect method Open() this function is with arguments . But the arguments isn't working and I get an error :
Error description: Error DBCMD/1010 Illegal characters in alias: ::cAlias
Called from DBUSEAREA(0)
Called from TDBODBCDIRECT:OPEN(0)
Antonio , do you have correct version of this function ?
With best regards ! Rimantas .
Rimantas U.