[Gambas-user] Property "Group" programming ???
DHoll28158 at ...87...
DHoll28158 at ...87...
Sat Aug 16 19:43:44 CEST 2003
In a message dated 8/16/2003 9:56:31 AM Pacific Daylight Time,
sourceforge-raindog2 at ...94... writes:
>
> 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
>
Thanks Rob
That worked, I can see where it might have some advantages over VBs index.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20030816/e8ed34bf/attachment.html>
More information about the User
mailing list