General information
Category:
Forms & Form designer
>I need to reference objects in different forms, i used to access this objects specifying first the name of the form containing that object, for example: principal.Estudios.cmdAceptar.click where "principal" is the name of the form.
>
>The problem is that foxpro is loosing the object reference so when i try to execute this code, shows the error "Object PRINCIPAL is not found", there is no reason and i did not find when is this happening. I'm not using complex programming.
>
>Can anyone help me to find how fix the reference of the objects?
>
>Thank you very much.
>
>Rodrigo Aguilera
>Chihuahua, Mexico
>
Do you open PRINCIPAL two or more times ?
When you open the second, you lose the first reference.
>
>En Español:
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>Necesito hacer referencia a objetos en otras formas asi que lo que normalmente hacia era simplemente especificar la ruta completa del objeto, comenzando con el nombre de la forma que lo contiene, por ejemplo: principal.Estudios.cmdAceptar.click siendo "principal" el nombre de una forma (.scx) la cual tambien tiene el nombre "principal" en su propiedad "name".
>
>El problema que tengo es que en algun momento de mi proyecto la referencia de los objetos se pierde, y cuando corro esa linea de codigo me aparece el error: "objeto PRINCIPAL no encontrado", el problema es que esto sucede a partir de que yo interactuo con algun objeto de la forma, es decir, este error no se presenta en las lineas colocadas en el "activate" de la forma, sino solo a partir de que yo comienzo a interactuar con cualquier objeto de la forma. No encontré ningun codigo que haga que pierda la referencia, estuve haciendo un recorrido por cada linea y todo funciona bien hasta antes de interactuar con algun objeto de la forma.
>
>Espero que alguien me pueda ayudar pues no he podido avanzar por este problema de referencia. Muchas gracias!
>
>Rodrigo Aguilera
>Chihuahua, Mexico
Previous
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