我有一个复选框,应该触发按钮是否可见。下面是代码:
PUBLIC SUB chkGiveUp_Click()
' Check to see if the Give Up button's visible property is set to true, and if it is, hide the button. If it is hidden, show it again.
IF btnClearAnswer.Visible THEN
btnGiveUp.Visible = FALSE
RETURN
END IF
IF btnGiveUp.Visible = FALSE THEN
btnGiveUp.visible = TRUE
RETURN
END IF
END
但是,它没有正确退出子程序,因此如果与另一个相矛盾。这样做的正确方法是什么?我是从 VB6 转移过来的初学者 gambas 程序员。我在 Ubuntu 11.10 上运行 gambas2,项目类型是图形应用程序。