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

bill-lancaster bill-lancaster at ...2231...
Sat Jan 31 16:07:21 CET 2015


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 c.Tag = "Data" Then
               Print c.Name
          Endif
     Next

But how to examine the .text value?



--
View this message in context: http://gambas.8142.n7.nabble.com/How-to-check-a-number-of-textboxes-for-data-tp50440.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list