窗口是窗口,关联表示关联表,两者概念完全不同
前者是WinForm.Form,后者是Table。
应该是:
For each t As Table in Tables
if t.Name.StartsWith("订单管理.") Then
T.Visble = True
End if
next
或者:
If MainTable.Name = "订单管理" Then Tables("订单管理.订单子项").Visible= True Tables("订单管理.订单子项.工种进度").Visible = True
Tables("订单管理.订单子项.工种进度.工料用量").Visible = TrueEnd If