[Gambas-user] Timer Tag property

Benoit Minisini gambas at ...1...
Thu Apr 8 23:16:32 CEST 2004


On Thursday 08 April 2004 07:00, Dimitri Bellini wrote:
> Dear Benoit
> 	i have try to use the creation of control Timer at runtime like this:
> ----
> private tmr[4] as Timer
> ---
> tmr[i]=NEW Timer(ME) AS "tmrCab"
> tmr[i].enabled=FALSE
> tmr[i].tag=i
> ---
>
> But in the first seems that the editor think the "Timer" is Time = Timer (
> ) e not the control and another the property Tag not seems to exist in this
> control. Can you give me some work around to have the Tag property working
> like button or textbox control?
> Thanks in advance
> Dimitri
>

Timer has no Tag property. Timer is NOT a control.
Why do you want to associate an index with the timer ? If you want to 
distinguish which timer is called in the Timer event, then use LAST.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list