No puedo crear tablas con campo memo en tiempo de ejecucion
Posted: Fri Apr 25, 2008 9:57 pm
Sres les paso el fragmento de mi prg
cDBF := "aaa"
IF FILE(cPathTMP+cDBF+".DBF")
FERASE(cPathTMP+cDBF+".DBF")
FERASE(cPathTMP+cDBF+".CDX")
ENDIF
AADD( aDbf,{ "RUC " , "C", 11, 00})
AADD( aDbf,{ "NOMBRE" , "C", 30, 00})
AADD( aDbf,{ "DIRECC" , "C", 30, 00})
AADD( aDbf,{ "MEMO" , "M", 10, 00})
DBCREATE( cPathTMP+cDBF+".DBF", aDBF ) // bota ERROR AQUI
Me dice : ERROR DBFCDX/1020 Create error c:\tmp\aaa.dbf
El trozo de mi bat compilador es:
SET FWH=d:\Fwh
SET HDIR=d:\harbour
SET BCDIR=d:\borland\bcc55
set bcidir=d:\bcc55\include
d:\harbour\bin\harbour fluja /n /Id:\Fwh\include;d:\harbour\include
d:\borland\bcc55\bin\bcc32 -c -Id:\harbour\include;%bcidir% fluja.c
d:\cdata\clip53\bin\rmake artu
if errorlevel 1 goto malo
%bcdir%\bin\brc32 -r -I%FWH%\include;%bcidir% fluja.rc
echo c0w32.obj + > b32.bc
echo fluja.obj + >> b32.bc
echo xmenu + >> b32.bc
echo msgbtn + >> b32.bc
echo mibtn + >> b32.bc
echo miitem + >> b32.bc
echo rddsys + >> b32.bc
echo texcels + >> b32.bc
echo oleauto, + >> b32.bc
echo fluja.exe, + >> b32.bc
echo fluja.map, + >> b32.bc
echo %FWH%\lib\FiveH.lib %FWH%\lib\FiveHC.lib + >> b32.bc
echo %hdir%\lib\rtl.lib + >> b32.bc
echo %hdir%\lib\vm.lib + >> b32.bc
echo %hdir%\lib\gtwin.lib + >> b32.bc
echo %hdir%\lib\lang.lib + >> b32.bc
echo %hdir%\lib\macro.lib + >> b32.bc
echo %hdir%\lib\rdd.lib + >> b32.bc
echo %hdir%\lib\dbfntx.lib + >> b32.bc
echo %hdir%\lib\dbfcdx.lib + >> b32.bc
echo %hdir%\lib\dbffpt.lib + >> b32.bc
echo %hdir%\lib\debug.lib + >> b32.bc
echo %hdir%\lib\common.lib + >> b32.bc
echo %hdir%\lib\pp.lib + >> b32.bc
echo %hdir%\lib\codepage.lib + >> b32.bc
echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %FWH%\lib\fget.lib %FWH%\lib\ole2.lib, >> b32.bc
rem IF EXIST conta.res echo conta.res >> b32.bc
%bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Alli figura dbffpt.lib que puede pasar?
gracias
cDBF := "aaa"
IF FILE(cPathTMP+cDBF+".DBF")
FERASE(cPathTMP+cDBF+".DBF")
FERASE(cPathTMP+cDBF+".CDX")
ENDIF
AADD( aDbf,{ "RUC " , "C", 11, 00})
AADD( aDbf,{ "NOMBRE" , "C", 30, 00})
AADD( aDbf,{ "DIRECC" , "C", 30, 00})
AADD( aDbf,{ "MEMO" , "M", 10, 00})
DBCREATE( cPathTMP+cDBF+".DBF", aDBF ) // bota ERROR AQUI
Me dice : ERROR DBFCDX/1020 Create error c:\tmp\aaa.dbf
El trozo de mi bat compilador es:
SET FWH=d:\Fwh
SET HDIR=d:\harbour
SET BCDIR=d:\borland\bcc55
set bcidir=d:\bcc55\include
d:\harbour\bin\harbour fluja /n /Id:\Fwh\include;d:\harbour\include
d:\borland\bcc55\bin\bcc32 -c -Id:\harbour\include;%bcidir% fluja.c
d:\cdata\clip53\bin\rmake artu
if errorlevel 1 goto malo
%bcdir%\bin\brc32 -r -I%FWH%\include;%bcidir% fluja.rc
echo c0w32.obj + > b32.bc
echo fluja.obj + >> b32.bc
echo xmenu + >> b32.bc
echo msgbtn + >> b32.bc
echo mibtn + >> b32.bc
echo miitem + >> b32.bc
echo rddsys + >> b32.bc
echo texcels + >> b32.bc
echo oleauto, + >> b32.bc
echo fluja.exe, + >> b32.bc
echo fluja.map, + >> b32.bc
echo %FWH%\lib\FiveH.lib %FWH%\lib\FiveHC.lib + >> b32.bc
echo %hdir%\lib\rtl.lib + >> b32.bc
echo %hdir%\lib\vm.lib + >> b32.bc
echo %hdir%\lib\gtwin.lib + >> b32.bc
echo %hdir%\lib\lang.lib + >> b32.bc
echo %hdir%\lib\macro.lib + >> b32.bc
echo %hdir%\lib\rdd.lib + >> b32.bc
echo %hdir%\lib\dbfntx.lib + >> b32.bc
echo %hdir%\lib\dbfcdx.lib + >> b32.bc
echo %hdir%\lib\dbffpt.lib + >> b32.bc
echo %hdir%\lib\debug.lib + >> b32.bc
echo %hdir%\lib\common.lib + >> b32.bc
echo %hdir%\lib\pp.lib + >> b32.bc
echo %hdir%\lib\codepage.lib + >> b32.bc
echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %FWH%\lib\fget.lib %FWH%\lib\ole2.lib, >> b32.bc
rem IF EXIST conta.res echo conta.res >> b32.bc
%bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Alli figura dbffpt.lib que puede pasar?
gracias