[Gambas-user] life of an object

Hugo htakada at ...626...
Tue Dec 6 15:00:43 CET 2005


but I think it would be better to access the instance variable and not the
class variable, is it possible to make a form valid after it was closed at
least until the function returns to the caller.


On 05/12/05, Hugo <htakada at ...626...> wrote:
>
> I think I got it, my problem is/was that I was refering to the instance
> instead of the class , this code works now.
>
> PUBLIC SUB Button1_Click()
>   DIM clave AS String
>   DIM frm AS FrmSeleccionRegistro
>   'la finalidad de esta funcion es que muestra un form de seleccion de
> registros
>   frm = NEW FrmSeleccionRegistro(variables.PaisesTitulos,
> variables.PaisesCampos, variables.PaisesAlign, variables.PaisesAncho,
> resSQl.sql_tbPaises, "Seleccion de Pais")
>   frm.show()
>   clave = FrmSeleccionRegistro.publicVariable ' here frm.publicVariablewas the problem
>   RETURN
> END
>
> Hugo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20051206/94ecddce/attachment.html>


More information about the User mailing list