读书人

VBScript中一些小疑点请大家讲解

发布时间: 2012-03-06 20:47:55 作者: rapoo

VBScript中一些小问题请大家讲解
1.
AlertLabel.ForeColor = vbRed
AlertLabel.Font.Bold = True
AlertLabel.Font.Italic = True
2.
Document.Form1.CardType.Options(SelectedIndex).Text
请注解一下,上面几句代码什么意思?

[解决办法]
1.AlertLabel 的前景色为红,字体为粗,斜
2.取出表单Form1中CardType下拉框当前选中的值
[解决办法]
1.
AlertLabel.ForeColor = vbRed 'AlertLabel 的前景色为红
AlertLabel.Font.Bold = True '…………字体为粗体AlertLabel.Font.Italic = True '…………字体为斜体2.
'取出表单Form1中CardType下拉框当前选中的值
Document.Form1.CardType.Options(SelectedIndex).Text

读书人网 >vbScript

热点推荐