<HTML><HEAD><TITLE>[Gvsig_desarrolladores] como aadir una linea a un dbf que no es de un shape en mobile</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText43089>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hola, Eñaut. Sobre el DBF:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Si tienes un DBF, puedes abrirlo desde la aplicación con la clase DbfMemoryDataSource. Después debería ser fácil escribir un nuevo DBF (se podría escribir con el mismo nombre, creo) usando la clase DBFFromReadVect. Lógicamente te faltarán ciertos objetos, pero creo que, a partir del DbfMemoryDataSource se puede obtener lo que se necesite. Por ejemplo, a la variable 'theRV' se le pide el número de elementos. Ahí contestarías con (n+1) siendo n el número de elementos que tiene el DBF al empezar (suponiendo que quieres añadir solo 1 registro en el DBF. Después al usar la variable writeDbf escribirías todo lo que tenía el DBF original y también la nueva file (Value[]) que habrás creado de alguna manera.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Usar javaDBF no parece mala&nbsp;idea, aunque creo que no lo he probado nunca en una PDA.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Saludos,</FONT></DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;</DIV></DIV>
<DIV id=idSignature32377>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_desarrolladores-bounces@listserv.gva.es en nombre de agirrearri<BR><B>Enviado el:</B> mar 08/06/2010 19:26<BR><B>Para:</B> gvsig_desarrolladores@listserv.gva.es<BR><B>Asunto:</B> [Gvsig_desarrolladores] como añadir una linea a un dbf que no es de un shape en mobile<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Hola a todos, querra saber como aadir una lnea a un dbf con objetos de<BR>gvsig mobile. He estado mirando en StopEditing pero veo que aqui tiene en<BR>cuenta el layer. Yo no tengo ningun layer porque este es un dbf simple que<BR>no esta asociado a ningun shp.<BR><BR>Que clases se utilizan en gvsig mobile para editar dbf-s<BR><BR>He empezado con javaDBF pero he tenido problemas y prefiero hacerlo con las<BR>clases que utilizais en gvSig Mobile.<BR>Que me recomendais? mejor hacerlo con javaDBF? O no? Donde miro si quiero<BR>hacerlo con clases de gvSig Mobile?<BR><BR>Quiero meter una fila pero el dbf puede variar, por eso quiero encontrar los<BR>campos por nombre de columna.<BR><BR>Gracias, atentamente Eaut.<BR>--<BR>View this message in context: <A href="http://osgeo-org.1803224.n2.nabble.com/como-a-adir-una-linea-a-un-dbf-que-no-es-de-un-shape-en-mobile-tp5154700p5154700.html">http://osgeo-org.1803224.n2.nabble.com/como-a-adir-una-linea-a-un-dbf-que-no-es-de-un-shape-en-mobile-tp5154700p5154700.html</A><BR>Sent from the gvSIG desarrolladores mailing list archive at Nabble.com.<BR>_______________________________________________<BR>gvSIG_desarrolladores mailing list<BR>gvSIG_desarrolladores@listserv.gva.es<BR><A href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores</A><BR></FONT></P></DIV></BODY></HTML>