Re: [Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-13 Thread Charlie
Thank you everyone. I tried the simple example from Jussi Lahtinen and found that worked very well. I need to get my head around this before I try the more complex examples. Thanks again. Mark as SOLVED. Charlie -- View this message in context: http://gambas.8142.n7.nabble.com/How-do-you-dea

Re: [Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-13 Thread Charlie Reinl
Am Freitag, den 13.12.2013, 05:47 -0800 schrieb Charlie: > Hi Richard, > > Thanks for the reply. Here is the code I am using. I thought there must be a > better way. > > Charlie. > > Public Sub ClearTable() > QTY1.text = "" > QTY2.text = "" > QTY3.text = "" > QTY4.text = "" > QTY5.text = "" > QT

Re: [Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-13 Thread Jussi Lahtinen
Dim oo As Object For Each oo In YourForm.Children If oo Is TextBox Then oo.Visible = False oo.Text = "" Endif Next You can use tag property to identify boxes you want to make invisible. Jussi On Fri, Dec 13, 2013 at 3:47 PM, Charlie wrote: > Hi Richard, > > T

Re: [Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-13 Thread nando
@lists.sourceforge.net Sent: Fri, 13 Dec 2013 05:47:34 -0800 (PST) Subject: Re: [Gambas-user] How do you deal with multiple objects (Textboxes) > Hi Richard, > > Thanks for the reply. Here is the code I am using. I thought there must be a > better way. > > Charlie. > &g

Re: [Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-13 Thread Charlie
Hi Richard, Thanks for the reply. Here is the code I am using. I thought there must be a better way. Charlie. Public Sub ClearTable() QTY1.text = "" QTY2.text = "" QTY3.text = "" QTY4.text = "" QTY5.text = "" QTY6.text = "" QTY7.text = "" QTY8.text = "" QTY9.text = "" QTY10.text = "" WH1.text =

Re: [Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-12 Thread richard terry
On 13/12/13 09:30, Charlie wrote: > Hi,I want to clear multiple *Textboxes* and using the following code seems > inefficient: -*Textbox1.text = ""Textbox2.text = ""Textbox3..*Is there a > better way?I have looked at "Collections" and "For Each" commands but I > can't work out if this is the cor

[Gambas-user] How do you deal with multiple objects (Textboxes)

2013-12-12 Thread Charlie
Hi,I want to clear multiple *Textboxes* and using the following code seems inefficient: -*Textbox1.text = ""Textbox2.text = ""Textbox3..*Is there a better way?I have looked at "Collections" and "For Each" commands but I can't work out if this is the correct method.Thanks for any help.Charlie.