高手进来帮忙注释VB代码

来源:百度知道 编辑:UC知道 时间:2024/05/14 05:35:20
Private Sub cmdOkCancel_Click(Index As Integer)
Select Case Index
Case 1
If rst3.Fields("是否借出") = True Then
MsgBox "此书已经借出!", 0 + 48, "提示"
txtBookBian.Text = ""
txtBookBian.SetFocus
Frame4.Visible = False
Frame7.Visible = True
Exit Sub
End If
rst2.AddNew
rst2.Fields("图书编号") = rst3.Fields("图书编号")
rst2.Fields("书名") = rst3.Fields("书名")
rst2.Fields("价格") = rst3.Fields("价格")
rst2.Fields("出版社") = rst3.Fields("出版社")
rst2.Fields("借出日期") = Date
rst2.Fields("借书证号") = BookId
rst2.Fields("姓名") = txtName.Text
rst2.Fields("类别") = rst3.Fields("类别")
rst2.Update

一楼说的也太不文明了吧,还是专家呢
不要再这么说了,小心有人投诉你

这么简单的程序帮你注释其实是害你,100分我也不要,你自己查书查MSDN文档去吧

我晕,你自己的代码让别人给你注释,就好像脱了裤子放屁。。。。