[Gambas-user] Property "Group" programming ???

Rob sourceforge-raindog2 at ...94...
Sat Aug 16 18:30:29 CEST 2003


On Saturday 16 August 2003 10:32, DHoll28158 at ...87... wrote:
> I now have a public sub "testGroup_Click()"
> I have not been able to determine how to differentiate which button has
> been clicked.

Use the LAST keyword.  It refers to the object that generated the most recent 
event.

Now, since Gambas currently doesn't give you access to the name of a control, 
you need to put something in the Tag property and use that in your select 
case:

select case LAST.Tag
case "Button1"
	...
case "Button2"
...
etc...

I think the wiki page for LAST has some more information.

Rob





More information about the User mailing list