[Gambas-user] show hide controls

Neil Fallon nfallo at ...734...
Sat Mar 5 14:49:24 CET 2005


Hi,

I am creating a small test application with Gambas.  If the data coming
from the database has a length of less than 4 I want to hide 2 radio
buttons.  For some reason I am having problems hiding the buttons.  The
code is as follows.


oConn.Type="sqlite"
oConn.Name="quiz"

oConn.Open

strQuery = "select * from test"
rsResult = oConn.Exec(strQuery)

rsResult.MoveFirst
counter = 0
txtQuestion.Text = rsResult["question"]
lblCount.Caption = "Question " & rsResult["id"] & " of 500"

IF Len(rsResult["answer"]) <4 THEN
RadioButton3.Visible = FALSE
RadioButto43.Visible = FALSE
END IF


Neil






More information about the User mailing list