In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

CREATING A FILE WITH TADSDATASOURCE

Xailer English public forum
Roberto
Mensajes: 177
Registrado: Mar Oct 16, 2007 11:53 pm

CREATING A FILE WITH TADSDATASOURCE

Mensaje por Roberto »

I can't create an ADT table :o(
PROCEDURE p_Convert(cSource, cTarget)
LOCAL oForm := Application:oMainForm
LOCAL ds
WITH OBJECT ds := TAdsDataSource():create(oForm, "C:temp")
:nFileType := afADT // it works with afNTX
:nServerType := asREMOTE
:lConnected := .T.
END
f1(ds)
RETURN NIL
STATIC FUNCTION f1(ds)
ds:createTable({{"NOME", "C", 30, 0}}, "lixo2")
RETURN NIL
What am I doing wrong?
******************************* Error log file
********************************
Exe: C:Top2utildbf2adtmain.exe
Version: 1.0.0.0
Data: 11/06/08
Hora: 12:00:49
Memória Disponí­vel: 941316
írea Actual: 1
-------------------------- Informação do
Compilador ---------------------------
Versão do Xailer: Xailer 1.9.8 Version 1.9
Compilador: xHarbour build 1.0.0 Intl. (SimpLex) PCode Version: 9
Compilador C/C++ : Borland C++ 5.8.0
Plataforma Windows: Windows Windows Vista Professional 6.00.6001 Service
Pack 1
-------------------- Informação de manejo de erro
interno ---------------------
Chamada Subsistema: DBCMD
Código Sistema: 1015
Status por Defeito: .F.
Descrição: Argument error
Operação: DBCREATE
Argumentos:
Ficheiros Involvidos:
Dos Error Code: 0
Trace Through:
DBCREATE (0)
TADSDATASOURCE:CREATETABLE (349)
F1 (15)
P_CONVERT (34)
(b)TFORM1:FORMINITIALIZE (36)
TBUTTON:ONCLICK (0)
TBUTTON:CLICK (99)
(b)XCONTROL:XCONTROL (145)
TBUTTON:COMMAND (0)
TSCROLLINGWINCONTROL:WMCOMMAND (254)
TFORM1:WMCOMMAND (897)
RUNFORM (0)
TAPPLICATION:RUN (209)
MAIN (15)
Responder