填空题:在窗体上画一个文本框和一个标签,其名称分别为Textl和Label1,然后编写如下程序:Private Sub Form

  • 题目分类:VB
  • 题目类型:填空题
  • 查看权限:VIP
题目内容:
在窗体上画一个文本框和一个标签,其名称分别为Textl和Label1,然后编写如下程序:
Private Sub Form_Click0
Textl.Text=Str(fun(5))
End Sub
Private Sub Textl_Change()
Label1.Caption=”VB Programing”
End Sub
Function fun(s As Integer)
For i=1 To S
Sum=Sum+i
Next i
fun=Sum
End Function
程序运行后,单击窗体,则在文本框中显示的内容是【l】,而在标签中显示的内容是【2】。
参考答案:
答案解析:

在n个运动员中选出任意r个人参加比赛,有很多种不同的选法,选法的个数可以用公式计算。下图窗体中3个文本框的名称依次是Te

在n个运动员中选出任意r个人参加比赛,有很多种不同的选法,选法的个数可以用公式计算。下图窗体中3个文本框的名称依次是Textl、Text2、Text3。程序运行

查看答案

设有如下通用过程:Public Function Fun(xStr As String)As StringDim tSt

设有如下通用过程:Public Function Fun(xStr As String)As StringDim tStr As String,strL As

查看答案

已知有下面过程Private Sub Procl(a As Integer,b As String,Optional X

已知有下面过程Private Sub Procl(a As Integer,b As String,Optional X As Boolean)……End Su

查看答案

有如下函数:Function fun(a As Integer,nAs Integer)As IntegerDim mA

有如下函数:Function fun(a As Integer,nAs Integer)As IntegerDim mAs IntegerWhile a>=na

查看答案

假定有以下函数过程:Function Fun(S As String)As StringDim sl As String

假定有以下函数过程:Function Fun(S As String)As StringDim sl As StringFor i=l To Len(S)S 1

查看答案