Something happened.... public sub WriteLogg() print GetMe.name (and or other options) end
And the heavy stuff is here: for every Object you want to control, you will have to: private sub xxx_control_click() GetMet=xxx_control m.WriteLogg Alternate WriteLogg as function public WriteLogg(xctrl as control) print xctrl.name.... I am sure one of the guys here have more sophisticated solutions for you., f.eks the event-handler on every form, but I am not so good at that yet. Regards, Dag-Jarle 2011/9/6 Dag-Jarle Johansen <dag.jarle.johan...@gmail.com> > Hi, > > I had to write something like that in VB for QM. Even though the effort > might be overwhelming, I would do some thing like this: > > make a global object in some module, > f.eks. > m.module > public GetMe as object > > in the same module you save or do anything f.eks > > puclic sub WriteLogg() > > > > 2011/9/6 Fabien Bodard <gambas...@gmail.com> > >> good question rolf :/ >> >> 2011/9/6 Fabien Bodard <gambas...@gmail.com>: >> > first answer for steve >> > >> > Public Sub Slider1_MouseUp() >> > >> > Print "Mouse is released" >> > >> > End >> > >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user