首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
admin
2009-05-15
43
问题
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。
本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列表中进行选择,程序就会将选中条目的内容以及编号(从0开始)分别在文本框Txt_Content和Txt_Index中显示出来。
【程序代码5.1】
Private Sub Combol_Click()
Txt_Content. Text=Combol. (1)
Txt_Index. Text=Combol. (2)
End Sub
(注:可供(2)处选择的选项:Number,List,Index,ListIndex,ListCount)
【应用说明5.2】
本应用程序的运行窗口如下图所示。
当用户在输入框(名为Txt_Input)中输入数值数据,并从下拉式列表框(名为CmbOp)中选择所需的运算后。输出框(名为Txt_Output)中就会显示运算的结果。用户单击“清除”按钮(名为 CmdClear)后,输入框和输出框都清空。
开发该应用的部分程序代码如下:
【程序代码5.2】
Private Sub CmbOp_Click()
Dim DataIn As Double,DataOut as Double
DataIn =(3)
Select Case (4)
Case "取整数部分"
DataOut = Int(DataIn)
Case "求平方根"
If DataIn<0 Then
MagBox "负数不能开平方!"
Else
DataOut = sqr(DataIn)
End If
Case "取绝对值"
DataOut = Abs(DataIn)02502
(5)
Txt_Output.Text=str $(DataOut)
End Sub
选项
答案
(2)Listlndex
解析
组合框的Listlndex属性用于取得选中的项的编号。
转载请注明原文地址:https://www.kaotiyun.com/show/25jZ777K
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
请根据网页显示的如下效果,将HTML文本中(n)处解答填于相应的解答栏内。[HTML文档]<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http:/
The World Wide Web is the latest evolution of an effort to make information on computers(68)the world available to as many users
(66)is a channel’ s capacity which directly reflects the data transfer rate of the channel.(67)functions in a NetWare network wh
There are several applications called Web(69)that make it easy to access the World Wide Web, two of the most popular being Netsc
The major goal of USB was to define an external expansion bus which makes adding(70)to a PC as easy as hooking up a telephone to
Because Web servers are platform and application(71)they can send or request data from legacy or external applications including
There are several applications called Web(73)that make it easy to access the World Wide Web. two of the most popular being Netsc
By using MP3, a 600M-byte music CD can be(70)to 50M bytes or less. It can be streamed(downloaded in chunks)so that you can begin
By using MP3, a 600M-byte music CD can be(70)to 50M bytes or less. It can be streamed(downloaded in chunks)so that you can begin
By using(26), a 600M -byte music CD can be compressed to 50M bytes or less. It can be streamed(downloaded in chunks) so that you
随机试题
鼻外伤引起的脑脊液鼻漏的处理,下述哪项不正确()
引起男性乳腺发育的疾病或药物不包括
根据归经学说,用辅料炮制药物,醋制入
埋设在冻土层以下的电缆,施工时可在电缆上、下各铺()厚的河砂。
价值工程涉及到( )三个基本要素。
专运液体的集装箱是()。
党的十八大以来,习近平总书记多次视察部队和革命老区,曾叮嘱部队领导要把红色基因融入官兵血脉,让红色基因代代相传。2019年5月31日,习近平总书记在“不忘初心、牢记使命”主题教育工作会议上再次强调要传承红色基因。在建党近百年的奋斗过程中,无数仁人
中国行政管理的主要特征包括()。
反应时实验的因变量有哪些?它们之间有什么关系?以它们为因变量的指标要遵循什么原则?如何对这一原则进行检验?
假定第一红木国民银行的资产负债表如下:(单位:百万美元)如果资产回报率不变,银行的税后净利润是多少?
最新回复
(
0
)