首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
admin
2009-05-15
40
问题
阅读以下应用说明及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://kaotiyun.com/show/25jZ777K
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
阅读以下说明。[说明]公司A网络拓扑结构如图2-1所示,其中FTP_server是在WindowsServer2003操作系统中配置的FTP服务器,仅供公司内部主机访问。图2-2是配置FTP服务时的FTP站点选项卡,“IP地址”栏的
A computer network links computers together to allow users to share hardware, software, and(73)
A user interface can be defined as the combination of hardware and software that helps people and computers(72)with each other.
(66)is a channel’ s capacity which directly reflects the data transfer rate of the channel.(67)functions in a NetWare network wh
The Programming languages are designed to(74)the communication between human and computers.
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
(69)Virus Security Software is designed to detect, eliminate or quarantine computer viruses before they are able to harm a compu
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
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
随机试题
按照行为所偏离的社会行为准则的标准,偏差行为可以分为三种类型()
肺换气的动力是
人员密集场所发生火灾时,该场所的现场工作人员应当立即()。
某实施监理的工程,建设单位与甲施工单位按《建设工程施工合同(示范文本)》签订了合同,合同工期2年。经建设单位同意,甲施工单位将其中的专业工程分包给乙施工单位。工程实施过程中发生以下事件。事件1:甲施工单位在基础工程施工时发现,现场条件与施工图不符
高倍数泡沫灭火系统不包括()。
同一只股票,其风险是客观的,但是有的人买,有的人卖,这可能是因为买者和卖者的风险认知度有差异。()
统计计量的尺度可以分为()。
企业下列生产经营业务中可以分期确认收入的有()。
我国法律规定:“学校不得使未成年学生在危及人身安全、健康的校舍和其他教育教学设施中活动。”明确做出此规定的是()
初级卫生保健的基本内容包括()。
最新回复
(
0
)