General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Hola Edhin, muchas gracias por responder.
Lo que pasa es que tengo un ambiente de prueba y un ambiente de produccion.
Normalmente se agregan las tablas al dataenvironment con un clik y listo. Mi intención es hacerlo por codigo, encontre este codigo:
Agregar tabla al entorno de datos por Código
oWith Thisfom.DataEnvironment
.Addobject(_MiTabla_,_Cursor_)
.MiTabla.CursorSource=_Rutadatos abla.dbf_
.MiTabla.Alias=_Tutabla_
.MiTabla.Order=_Tuorder_
.MiTabla.Exclusive=.T.
.MiTabla.BufferModeOverride=1 ** Dependiendo
.Opentables()
EndWith
Tambien lei por ahi que sebe poner la Propiedades AutoOpenTables = .F.
y el codigo anterior en el Form.Load
Al adecuar el codigo a mi programa, me sale un error en referencia al cursor que he creado...
Saludos
Previous
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