R: [Gambas-user] How to change the name of an object on the f ly.. ...?

Silveira Andre-WAS074 andre at ...923...
Tue Mar 29 16:15:53 CEST 2005


But I want then all in a specific displacement. how is it possible with dynamic allocation?

Regards

-----Original Message-----
From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at ...574...ts.sourceforge.net] On Behalf Of Benoit Minisini
Sent: terça-feira, 29 de março de 2005 10:56
To: gambas-user at lists.sourceforge.net
Subject: Re: R: [Gambas-user] How to change the name of an object on the fly.. ...?


On Tuesday 29 March 2005 15:42, Premoli, Roberto wrote:
> >In other words.
> >I want to replace the "number" by the content of a var, this way I
>
> could >write a loop function to update all my text box. I have no Idea 
> of how to >do that.
>
> >Would be something like use %s,index in c++. :) but how to do that in 
> >gambas? I heard that in MS VB you can index the text boxes and then 
> >use the
>
> index >to do what I want. Is this resource avaliable in gambas?
>
> >Thanks in Advance
> >Andre Silveira
>
> As far as i know, this feature DOESNT exist in GAMBAS :-(
> I regret so much this leak, because to index the objects is a SMART 
> way to work when there are many object to manage: more, it is elegant 
> to use a for-next cicle for a quick work on an array of objects. I 
> hope this feature will be implemented as soon as possible.
>
> Roberto
>

I won't implement this "feature" to prevent you from writing bad code. Gambas 
is not Visual Basic :-)

If you have many textboxes for doing the same thing, then you must not create 
them in the IDE, but dynamically in your code, and assign them to an array of 
object. 

You will find examples of that in this mailing-list If I remember...

Regards,

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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