[Gambas-user] life of an object

Hugo htakada at ...626...
Mon Dec 5 20:58:52 CET 2005


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.publicVariable was
the problem
  RETURN
END

Hugo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20051205/398102c5/attachment.html>


More information about the User mailing list