工作调度与生产计划应用详解
1. 工作调度应用
1.1 用户表单设计
frmInputs 设计使用了 10 个文本框和相应的标签,还有常见的“确定”和“取消”按钮,以及按钮左侧的一些解释标签。“日期”文本框命名为 txtDay1 到 txtDay7 (对应周一到周日),工资率文本框命名为 txtWeekday 和 txtWeekend ,百分比文本框命名为 txtMaxPct 。
相关事件处理程序如下:
Private Sub btnCancel_Click()
Unload Me
End
End Sub
Private Sub btnOK_Click()
' Check for improper entries in the text boxes. If any entries are improper,
' exit this sub without unloading the dialog box.
Dim ctl As Control
Dim day As Integer ' day index, 1 to 7
For Each ctl In Me.Controls
If TypeName(ctl) = "TextBox" Then
If ctl.Text = "" Or Not IsNumeric(ctl.Text)
超级会员免费看
订阅专栏 解锁全文
1244

被折叠的 条评论
为什么被折叠?



