以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  为什么有数据的也不显示了,关于for  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=126089)

--  作者:hongyefor
--  发布时间:2018/10/13 21:04:00
--  为什么有数据的也不显示了,关于for
For i As Integer = 1 To 7
    For j As Integer = 1 To 7
        Dim wtb As WinForm.TextBox = e.Form.Controls("Ts_" & i & "_" & j)
        If wtb.Text = "" Then
            wtb.Visible = False
        End If
    Next
Next


--  作者:有点甜
--  发布时间:2018/10/14 18:02:00
--  

For i As Integer = 1 To 7
    For j As Integer = 1 To 7
        Dim wtb As WinForm.TextBox = e.Form.Controls("Ts_" & i & "_" & j)
        If wtb.Text = "" Then
            wtb.Visible = False

        Else

            wtb.Visible = True
        End If
    Next

Next