[Gambas-user] How to set name of control

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Apr 11 00:51:49 CEST 2014


If the textboxes are already existing, then I think you should put them
into some container or collection.

Example, in container:

Dim hTextBox As TextBox

 For Each hTextBox In ToolPanel1.Children 'or hMyCollection
    ....
 Next


You can identify the boxes with Tag, Name, or whatever.


Jussi




On Fri, Apr 11, 2014 at 1:45 AM, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:

> What are you trying to achieve?
>
>
> Dim hTextBoxes As New TextBox[10]
>
> For ii = 1 To 3
> hTextBoxes[ii] = New TextBox(Me) As "Textbox" & CStr(ii)
> Next
>
>
> There is also Name property if you want to change name of existing
> textbox...
>
>
> Jussi
>
>
>
> On Thu, Apr 10, 2014 at 11:58 PM, abbat81 <abbat.81 at ...787...> wrote:
>
>>
>> How to do this:
>>
>> Dim i as integer
>>
>> For i = 1 to 3
>>   Textbox[i].Text = i ' Textbox1.Text, Textbox2.Text and Textbox3.Text
>> Next
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context:
>> http://gambas.8142.n7.nabble.com/How-to-set-name-of-control-tp46134.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Put Bad Developers to Shame
>> Dominate Development with Jenkins Continuous Integration
>> Continuously Automate Build, Test & Deployment
>> Start a new project now. Try Jenkins in the cloud.
>> http://p.sf.net/sfu/13600_Cloudbees
>> _______________________________________________
>> 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