vb课堂点名点名系统编程。。。需要有班级(两个以上)、学号、姓名、出勤、缺勤按钮、开始、退出、!
展开全部
vb6编的Dim a
Private Sub Command1_Click() '开始
Line Input #1, a
t = Split(a, " ")
text1.Text = t(0)
text2.Text = t(1)
End Sub
Private Sub Command2_Click(Index As Integer) '出勤或缺勤按钮
Print #2, a & Space(1) & Command2(Index).Caption
If EOF(1) = False Then
Line Input #1, a
t = Split(a, " ")
text1.Text = t(0)
text2.Text = t(1)
End If
End Sub
Private Sub Form_Load()
Open App.Path & "\姓名.txt" For Input As #1
Open App.Path & "\点名.txt" For Output As #2
End Sub
Private Sub Form_Unload(Cancel As Integer)
Close (1)
Close (2)
End Sub
Private Sub Command1_Click() '开始
Line Input #1, a
t = Split(a, " ")
text1.Text = t(0)
text2.Text = t(1)
End Sub
Private Sub Command2_Click(Index As Integer) '出勤或缺勤按钮
Print #2, a & Space(1) & Command2(Index).Caption
If EOF(1) = False Then
Line Input #1, a
t = Split(a, " ")
text1.Text = t(0)
text2.Text = t(1)
End If
End Sub
Private Sub Form_Load()
Open App.Path & "\姓名.txt" For Input As #1
Open App.Path & "\点名.txt" For Output As #2
End Sub
Private Sub Form_Unload(Cancel As Integer)
Close (1)
Close (2)
End Sub
--
2022-12-05 广告
2022-12-05 广告
图形化编程简单理解为用积木块形式编程,scratch和python也是其中的一种,属于入门级编程,以其简单生动的画面获得无数学生的喜爱,深圳市创客火科技有限公司是一家做教育无人机的公司,旗下有编程无人机,积木无人机及室内外编队,每款飞机含有...
点击进入详情页
本回答由--提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询