[Gambas-user] strange behaviour property visible

Jean-Yves F. Barbier 12ukwn at ...626...
Tue Nov 17 10:21:01 CET 2009


gb 2.17 debian sid
==================

Hi,

I've got something strange: if I don't add a wait line between
a visible property and a call, it don't work at all:

PUBLIC SUB btnOk_Click()
  MDB.MyHost = txtbHost.Text
  MDB.MyDB = txtbDB.Text
  MDB.MyUsr = txtbLogin.Text
  MDB.MyPass = txtbPass.Text
  IF MDB.DBConnect() THEN 
    lblWait.Visible = TRUE
    WAIT 0.01	' mandatory otherwise lblWait don't appear
    MDB.Fill_DB_Tree()
    lblWait.Visible = FALSE
    ME.Close
  ENDIF 
END

-- 
Angels we have heard on High
Tell us to go out and Buy.
		-- Tom Lehrer




More information about the User mailing list