[Gambas-user] _New in gambas
Georg Brandl
g.brandl at ...18...
Tue Aug 24 09:15:28 CEST 2004
Peter wrote:
> Am Montag, 23. August 2004 23:51 schrieb na2492 at ...9...:
>> >On Monday 23 August 2004 01:19, Charlie Reinl wrote:
>> >> Salut Benoit,
>> >>
>> >> Try to do that in a class or module file.
>> >> write two subs
>> >>
>> >> Sub somesub()
>> >> end
>> >>
>> >> Sub somesub_new()
>> >> end
>> >>
>> >> then click with the rightbutton of the mouse into the file and choose
>> >> Go
>> >>
>> >> to You will see somesub and a somesub (with a ->) where you find new.
>> >>
>> >> Amicalement
>> >> Charlie
>> >
>> >And what is the problem ?
>>
>> that is the problem (snapshot6.jpg)
>>
>> Charlie
>
> Hallo Charlie,
>
> '_' in SUBname prefaces eventname, so kill him :-) :
> Sub somesubNew() is also a word.
Well, as _ is common in function names, I would have chosen another
special character to separate event from object, for example:
PUBLIC SUB btnFoo#Click()
PUBLIC SUB btnFoo:Click()
PUBLIC SUB btnFoo at ...587...()
Or used a VB.NET style handling:
PUBLIC SUB btnFooClick() HANDLES btnFoo.Click
mfg
Georg
More information about the User
mailing list