我把几个checkbox控件移到导航条后就发现,按钮命令就发现找不到这些checkbox控件了,请问老师是什么原因,如何解决。
Dim work, Restday(6), Holiday As Boolean
Dim pct As Integer
Dim pc As Double
Dim Tb1 As Table = Tables ("排班人员设置")
Dim Tb2 As Table = Tables ("休假加班表")
Dim Tb3 As Table = Tables ("班次人数表")
Dim i, ii, j, k, m, mark, n, nmax, Pdays As Integer
n = DataTables ("排班人员设置").Compute ("count(姓名)", "在岗=true and 组别= " & Vars("Wgroup") & "")
Tb3.save
nmax = Tb3.Compute ("max(人数)")
Vars("Snum") = Tables ("班次人数表").Compute("sum(人数)")
For i = 0 To 6
Restday(i) = e.Form.Controls(i).Checked
Next
错误提示:
.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2024.11.1.1
错误所在事件:窗口,排班总窗口,一键排班,Click
详细错误信息:
未找到类型“Panel”的公共成员“Checked”。