[求助]太奇怪了怎么达不到预期效果大家帮忙看看
Private Sub Form_Load()
Dim i As Integer
For i = 0 To 29
If lblLabels(i).Caption = "" Then
txtFields(i).Visible = False
lblLabels(i).Visible = False
End If
Next
End Sub
我希望的效果是在程序载入中判断label的caption是否为空...如果为空那么label的visible属性为fase 相应的textbox的visible也为false.上面我是的程序,达不到预期的效果...请大家看看是什么问题...谢谢!