[Gambas-user] How to change the name of an object on the fly.....?
Silveira Andre-WAS074
andre at ...923...
Tue Mar 29 15:15:08 CEST 2005
List:
Today I made a simple program, but with a lot of text boxes. I purposely left then with the default names TextBox1, TextBox2 and on.
Now I don´t want to write a code line for each text box, i want to make a loop that updates the content of each one.
how can I do something like this.
DIM i as Integer
TextBox"number".text = strdata[i]
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
More information about the User
mailing list