General information
Category:
COM/DCOM and OLE Automation
Title:
Dbf2rs() y rs2dbf()
Hola gente
Consegui estos patch del vfpcom que saco MS en algun momento, pero el tema de los campos numéricos y decimales sigue sin hacer lo correcto, estuve viendo el codigo y lo estoy tratando de adaptar para que realmente me grabe la estructura original, pero cuando hacer el rs.field.append() del campo, en la propiedad DefinedSize pone el tamaño en funcion del flag o seteo del DataTypeEnum.
ej.
rs.field.append('campo1',adInteger,8,adFldupdateable)
con este comando el DefinedSize se genera de 4
rs.field.append('campo1',adUserDefined,8,adFldupdateable)
este comando me da el siguiente error:
Código de excepción OLE IDispatch 0 de ADODB.Fields: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another..Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.ADODB.Fields
alguien sabe como puedo hacer para poder setear el tamaño que yo quiera y que sea numérico.
Gracias de antemano a quien pueda aportar algun dato
Saludos, Mariano
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only