Opened 18 years ago
Closed 18 years ago
#492 closed defect (worksforme)
Vars DBA,DBExec and DBWriteTime doesn't exists
Reported by: | Iván Robles | Owned by: | danirus |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | DataBase | Version: | head |
Severity: | normal | Keywords: | |
Cc: |
Description
The ODBC is Sql Server and the OS is Windows XP.
When I run the next code:
Real DBOpen("I2SIM","Administrador","tpeb.0$eg");
Real DBCreaTabla("VaroriginalDef_borrar","NOMBRE VARCHAR(255),ORDEN FLOAT","","select A.NAME as NOMBRE,A.COLORDER AS ORDEN from dbo.syscolumns A,DBO.SYSOBJECTS B WHERE A.ID=B.ID
AND B.NAME='VarOriginalData' ORDER BY COLORDER");
Real DBClose("I2SIM");
Tol report this error:
ERROR: [80] DBA no es un objeto valido para el tipo Text.
ERROR: [81] DBExec no es un objeto valido para el tipo Real.
ERROR: [84] DBWriteTime no es un objeto valido para el tipo Real.
This vars doesn`t exits initially.
If I put:
Text DBA="SqlServer";
Real DBExec=1;
Real DBWriteTime=0;
the code runs correctly.I don`t know if this vars might exist initially.
The functions DBCreaTabla depends on DBWriteAndExec
Hi Iván,
Looks like, but depends on the rest of code you didn't send.
DBCreaTabla is a user function, with its own business code inside. Whether Text DBA, Real DBExec and Real DBWriteTime variables should previously exist or not depends on the code behind DBCreaTabla.
I encourage you to ask in the users community list (spanish-spoken list is the place if you want to be fully attended). In the meanwhile I must keep it resolved-WORKSFORME. If after a QA work or by a discussion arises a true Tol bug it will be reopened again.
Thanks you for your report.
Cheers,
Daniel