In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

me da el siguiente error

Foro de Xailer profesional en español
Responder
PILO
Mensajes: 583
Registrado: Vie Jul 06, 2007 5:18 pm

me da el siguiente error

Mensaje por PILO »

me da el siguiente error
***************************** Registro de errores *****************************
Fecha: 29-10-2006
Hora: 12:37:42
Memoria libre: 516304
Area actual: 1
------------------------- Información del compilador --------------------------
Versión Xailer: Xailer 1.1.1 Version 1.1a
Compilador: xHarbour build 0.99.61 Intl. (SimpLex) PCode Version: 7
Compilador C/C++: Borland C++ 5.5.1
Plataforma: Windows XP Professional 5.01.2600 Service Pack 2
----------------------- Información detallada del error -----------------------
Subsistema: BASE
Código de error: 1002
Estado: .F.
Descripción: Alias does not exist
Operación:
Argumentos:
Fichero:
Código error SO: 0
Pila de llamadas:
TDBFDATASET:GETTAGS (1101)
TFEXPLOTA:FORMINITIALIZE (40)
TFEXPLOTA:ONINITIALIZE (0)
TFEXPLOTA:NEW (183)
TMENUSRMPILO:MENU1ITEM1_1CLICK (36)
TMENUITEM:ONCLICK (0)
TMENU:DOACTION (213)
TMENU:DOACTION (218)
TMENUSRMPILO:WMCOMMAND (874)
RUNFORM (0)
TAPPLICATION:RUN (206)
MAIN (20)
Cuando salgo del error
me sale una mantalla de informacion " XAILER TCdxDataSoure: 1 files not closed correctly"
El metodo donde esta el error es este en la linea marcada:
METHOD FormInitialize( oSender ) CLASS TFexplota
LOCAL oSortMenu
LOCAL aTags
LOCAL nFor
set delete off
oSortMenu := TMenu():Create( Self, .t. )
::aTags := ::odbfDataSet1:GetTags()
::odbfDataSet1:OrdSetFocus("")
FOR nFor := 1 to len( ::aTags )
WITH OBJECT TMenuItem():New( oSortMenu )
:cText := "Order by " + ::aTags[ nFor ]
:Cargo := nFor
:OnClick := {|o| ::nTag := o:Cargo }
:Create()
END
NEXT
WITH OBJECT ::oToolBar := TToolBar():New( ::oRebar1 )
:lList := .t.
:lAutoSize := .t.
:Create()
//::oTagBtn := :AddButton( "", "BMP_SORT",,, "Set Order", {|| ::nTag++ }, oSortMenu )
::nTag := 1
WITH OBJECT ::oFilterBtn := :AddButton( "", "Filtrar",,, "Filtrado", {|| ::Filter() } )
:lChecked := .f.
END
:AddSeparator()
:AddButton( "", "Primero" ,,, "Primer registro", {|| ::oBrw:GoTop() } )
:AddButton( "", "Anterior" ,,, "Anterior", {|| ::oBrw:GoUp() } )
:AddButton( "", "Siguiente",,, "Siguiente", {|| ::oBrw:GoDown() } )
:AddButton( "", "Ultimo" ,,, "Ultimo registro", {|| ::oBrw:GoBottom() } )
:AddSeparator()
/*:AddButton( "", "BMP_APPEND",,, "Append", {|| ::AddNew() } )
:AddButton( "", "BMP_EDIT",,, "Edit", {|| ::Edit() } )
:AddButton( "", "BMP_DELETE",,, "Delete", {|| ::Delete() } )
:AddSeparator()
:AddButton( "", "XA_BMP_PRINTER",,, "Print", {|| ::Report() } )
*/:AddButton( "", "Salir",,, "Salir", {|| ::Close() } )
END
WITH OBJECT ::oRebarBand := TRebarBand():New( ::oRebar1 )
:oControl := ::oToolBar
:Create()
END
WITH OBJECT ::oEdiBusqueda := TEditBtn():New( ::oRebar1 )
:oBitmap := "lupa16"
:OnBtnClick := {|o| ::oBrw:Seek( o:Value ), nil }
:nMaxLength := 100
:Create()
::oBrw:oSeek := ::oEdiBusqueda
END
WITH OBJECT TRebarBand():New( ::oRebar1 )
:cText := "Búsqueda:"
:oControl := ::oEdiBusqueda
:Create()
END
RETURN Nil
--
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

me da el siguiente error

Mensaje por jfgimenez »

PILO,
revisa bien el componente oDbfDataSet1. Parece que aún no está abierto
cuando se ejecuta esa línea del programa.
--
Un saludo,
José F. Giménez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
PILO
Mensajes: 583
Registrado: Vie Jul 06, 2007 5:18 pm

me da el siguiente error

Mensaje por PILO »

Lo tengo que abrir cuando se inializa el formulario
como se hace por favor,
La base de datos esta en c:srmlibroexplota.dbf y la tengo que habre con
cdx
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

me da el siguiente error

Mensaje por jfgimenez »

PILO,
> Lo tengo que abrir cuando se inializa el formulario
> como se hace por favor,
> La base de datos esta en c:srmlibroexplota.dbf y la tengo que habre con
> cdx
Si tienes todas las propiedades asignadas en modo diseño (desde el IDE), tan
sólo tendrás que hacer:
::oDbfDataSet1:Open()
--
Un saludo,
José F. Giménez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder