FW_AdoImportFromDBF

FW_AdoImportFromDBF

Postby cnavarro » Sat Mar 01, 2014 2:08 pm

La funcion FW_AdoImportFromDBF,
¿sólo funciona con el RDD DBFCDX?
Con el RDDNTX me dice que no puede abrir el fichero .Dbf, por lo que las bases de datos que contienen campos memo no se pueden convertir.

The function FW_AdoImportFromDBF,
Is it only works with the RDD DBFCDX?
In RDDNTX tells me it can not open the file. Dbf, so databases that contain memo fields can not be converted.
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6498
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: FW_AdoImportFromDBF

Postby cnavarro » Sat Mar 01, 2014 8:12 pm

Error mio
La funcion funciona correctamente siempre que tengas activo los dos RDDs: CDX y NTX
y selecciona de forma automática el driver NTX si la extension del fichero memo es .DBT
El problema es si no usas CDX, fácilmente se soluciona añadiéndolo a tu aplicacion, pero
otra opcion sería añadir a la funcion el parámetro:

function FW_AdoImportFromDBF( oCn, cDbf, cAdoTable, cColPrefix, nMultiRowSize, aFields , cDriver )

y modificando esta linea

//local cDriver := "DBFCDX"

por

DEFAULT cDriver := "DBFCDX"


My error
The function works correctly whenever you have two active RDDs: CDX and NTX
and automatically selects the NTX driver if the file extension is the memo. DBT
The problem is if you do not use CDX easily solved by adding it to your application, but
another option would be to add the parameter to the function:

function FW_AdoImportFromDBF( oCn, cDbf, cAdoTable, cColPrefix, nMultiRowSize, aFields , cDriver )

and changing this line

//local cDriver := "DBFCDX"

by

DEFAULT cDriver := "DBFCDX"
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6498
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 4 guests