- 2
- 0
- 约8.37千字
- 约 31页
- 2017-09-12 发布于河南
- 举报
单元5:多选题功能设计和实现.pptx
5.5 任务实现 ③ 修改主界面代码,实现保存多选题答案功能。 Private Sub chkKey_Click(Index As Integer) strStuKey= If chkKey(0).Value=Checked Then strStuKey=strStuKey+A End If If chkKey(0).Value=Checked Then strStuKey=strStuKey+B End If If chkKey(0).Value=Checked Then strStuKey=strStuKey + C End If If chkKey(0).Value=Checked Then strStuKey=strStuKey+D End If Adodc1.Recordset.Fields.Item(stukey)=strStuKey Adodc1.Recordset.Update End Sub 5.6 任务拓展 我们已经实现了多选题功能,但是实际使用过程中,还可能遇到很多的问题: ① 选项可能是3个、5个、6个等时应如何处理? ② 题目或选项为长文本时如何实现? ③ 题目或选项中有图片时如何处理?
原创力文档

文档评论(0)