Hi to all
We have a form (developed with Visual FoxPro 5.0) which contains a page frame with several tapges on it. Using a method called "mcargar_formulario" (which is invoked from the activate method of every page), we set the value of all the text box's controlsource property as follows:
thisform.txtcodigo.controlsource = "thisform.poobjeto.codigo"
thisform.txtmodalidad.controlsource = "thisform.poobjeto.modalidad"
thisform ... blah blah blah .....
"poobjeto" is a form's property which, in the init event of the form, is loaded with an object which comes as a parameter. Our code for the init event is as follows:
lparameters toparam
thisform.poobjeto = toparam
... blah blah blah .....
This used to execute OK but one day, without any apparent reason, the form began to produce an error message that says something like that "poobjeto is an unknown member". So, using the debugger, we could see that the "poobjeto" property got loaded correctly on the init event of the form, but suddenly, while executing the "mcargar_formulario" method, showed a ".NULL." instead of the values of it's own properties (as if it was completely destroyed or deallocated from memory).
Finally, we solved the problem adding another property to the form, called "poobjeto1" and changing our form's init event as follows:
lparameters toparam
thisform.poobjeto1 = toparam
thisform.poobjeto = thisform.poobjeto1
... blah blah blah .....
We don't find any explanation for this. If somebody can tell us something about this .... do it please !!!
Thanks
Fausto Garcia
Solo se que nada se
Fausto J. Garcia Pino - MCSD.NET
.NET, Oracle, Tronador & Fondismo!