首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
阅读以下应用说明及Visual Basic程序代码,将应填入(n)处的字句写在对应栏内。 本应用程序的窗体中有一个下拉式列表框(名称为Combol)和两个文本框(名称分别为Txt_ Content和Txt_Index)。运行时,用户从Combol的列
admin
2009-05-15
105
问题
阅读以下应用说明及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
选项
答案
(3)Val(Txt_Input.Text)或Txt_Input.Text
解析
此处的Val(Txt_Input.Text)或Txt_Input.Text能够取得用户的输入。
转载请注明原文地址:https://www.kaotiyun.com/show/95jZ777K
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
阅读以下说明,回答问题1至问题5,将解答填入解答栏内。[说明]图4-1是某企业网络拓扑结构。防火墙的规则配置如表4-1所示,请解释该配置的含义。编写表4-2中规则1,禁止内网主机pc1访问Internet上的FTP服务。
In(71)programming,the user determines the sequence of instructions to be executed,not the programmer.
When the result of an operation becomes larger than the limits of the representation,(75)occurs.
A small network may only connect two computers inside a home to share a single printer and Internet(69)
(66)is a one-way function that takes an arbitrarily long piece of plaintext and from it computes a fixed,length bit string.(67)i
Without systems software, application software in a computer is(73)
Because Web servers are platform and application(71)they can send or request data from legacy or external applications including
(75)VirusSecuritySoftwareisdesignedtodetect,eliminateorquarantinecomputervirusesbeforetheyareabletoharmacomp
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
随机试题
设f(x)=3x,g(x)=x3,求f’[g’(x)].
A.平肝潜阳,清肝明目,解毒生肌B.平肝潜阳,清肝明目,镇惊安神C.平肝潜阳,清肝明目,清热解毒D.安神定惊,明目消翳,解毒生肌珍珠母的功效是
某成像系统能提供的灰度级数为256,其比特数为
赵某的赌博行为是否构成犯罪?如何处理?本案中李某的行为是否构成犯罪?如何处理?
净经营收入理论假定,当企业增加债务融资时,股票融资的成本不变。()
It’sgoodtoknow______thedogswillbewellcaredforwhilewe’reaway.
Scholasticthinkersheldawidevarietyofdoctrinesinbothphilosophyandtheology,thestudyofreligion.【F1】Whatgivesunity
在考生文件夹下,打开文档WORD1.DOCX,按照要求完成下列操作并以该文件名(WORD1.DOCX)保存文档。【文档开始】为什么铁在月秋上不生锈?众所周知,铁有一个致命的缺点:容易生锈,空气中的氧气会使坚硬的铁变成一堆松散的
Allsocialunitsdevelopaculture.Evenintwo-personrelationshipsaculturedevelopsintime.Infriendshipandromanticrela
WisdomTeethWisdomteetharenormallythelastteethtoappear./Thisusuallyhappenswhenpeopleareintheirlateteeny
最新回复
(
0
)