[Gambas-user] Object class and name

Eldon Eller eeller at ...826...
Thu May 12 18:12:57 CEST 2005


I have not tried this, but I believe you can attach a tag to 
each control that will let you do what you want.

PV wrote:
> Hi everybody,
> 
> I need to iterate over a set of different controls (like textboxes, 
> buttons,
> labels etc) inside a container, and I need to know their name (and possibly
> class) to properly operate on each of them.
> 
> I have to do something like
> 
>   DIM hControl AS Control
>   FOR EACH hControl IN Frame1.Children
>     IF hControl.Class [or .Name] = something THEN
>       ...
>     END IF
>   NEXT
> 
> but, according to what I have been able so far to learn about Gambas, 
> neither
> .Class nor .Name are available.
> 
> Is that right or is there any other method to accomplish this task?
> 
> TIA,
> Piero
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 




More information about the User mailing list