教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 学前教育 >

《Visual Basic程序设计基础》习题参考答案(11)

来源:网络收集 时间:2026-05-15
导读: Private Sub Text5_Validate(Cancel As Boolean) If vlt = True Then Cancel = False Else MsgBox \课程号重号,重新输入!\输入验证!\Cancel = True End If End Sub Private Sub Text11_KeyDown(KeyCode As Integ

Private Sub Text5_Validate(Cancel As Boolean) If vlt = True Then Cancel = False Else

MsgBox \课程号重号,重新输入!\输入验证!\Cancel = True End If End Sub

Private Sub Text11_KeyDown(KeyCode As Integer, Shift As Integer) Dim xh As String

If KeyCode = vbKeyReturn Then Adodc1.Recordset.MoveFirst

Adodc1.Recordset.Find \学号='\ If Not Adodc1.Recordset.EOF Then

Adodc3.Recordset(\学号\= Text11.Text: SendKeys \vlt = True Else

MsgBox \学号不存在,重新输入!\输入验证!\

vlt = False: Text11.SelStart = 0: Text11.SelLength = Len(Text11.Text) End If

Adodc1.Recordset.MoveFirst End If End Sub

Private Sub Text11_Validate(Cancel As Boolean) If vlt = True Then Cancel = False Else

MsgBox \学号不存在,重新输入!\输入验证!\Cancel = True End If End Sub

Private Sub Text12_KeyDown(KeyCode As Integer, Shift As Integer) Dim kch As String

If KeyCode = vbKeyReturn Then Adodc2.Recordset.MoveFirst

Adodc2.Recordset.Find \课程号='\ If Not Adodc2.Recordset.EOF Then

Adodc3.Recordset(\课程号\= Text12.Text: SendKeys \vlt = True Else

MsgBox \课程号不存在,重新输入!\输入验证!\

vlt=False:Text12.SelStart=0:Text12.SelLength= Len(Text12.Text) End If

Adodc2.Recordset.MoveFirst End If End Sub

Private Sub Text12_Validate(Cancel As Boolean) If vlt = True Then Cancel = False Else

MsgBox \课程号不存在,重新输入!\输入验证!\End If End Sub

《Visual Basic程序设计基础》习题参考答案(11).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/598753.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)