Re: [Gambas-user] How to check a number of textboxes for data

2015-01-31 Thread bill-lancaster
Thanks Jussi - it works fine -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-check-a-number-of-textboxes-for-data-tp50440p50443.html Sent from the gambas-user mailing list archive at Nabble.com. --

Re: [Gambas-user] How to check a number of textboxes for data

2015-01-31 Thread Jussi Lahtinen
Does this work? Dim o As Object For Each o In Me.Controls If o.Tag = "Data" Then ' Optionally If o Is TextBox Then Print o.Name;; o.Text Endif Next Jussi On Sat, Jan 31, 2015 at 5:07 PM, bill-lancaster wrote: > This must be simple but I can't

[Gambas-user] How to check a number of textboxes for data

2015-01-31 Thread bill-lancaster
This must be simple but I can't see it! I have a 5 textboxes on a form and wish to ensure that they all contain data before creating a new record in a database. By setting them all with Tag ="Data" the following code finds the controls. Dim c As Control For Each c In Me.Controls If