单选题 VB
题号 #142389

在窗体上画1一个名称为Command1的命令按钮,并编写以下程序  
  Private Sub Command1_Click()  
      Print fun(“ABCDEFG”)  
  End Sub  
    Function fun(st As String) As String   
     stlen=Len(st)  
     temp=””  
     For k  
     fun=temp  
  End Function  
程序运行时,单击命令按钮,则窗体上显示的是(  )。

进入在线模考

参考答案

B

答案解析

暂无解析

你可能感兴趣的试题

A.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a>=0 or a<=100 Then  
      Text2.SetFocus  
  Else  
        Text1. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub  
B.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a>=0 And a<=100 Then  
      Text1.SetFocus  
  Else  
        Text2. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub  
C.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a<0 And a>100 Then  
      Text2.SetFocus  
  Else  
        Text1. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub  
D.Private Sub Text1__KeyPress(KeyAscii AS Integer)  
       If  KeyAscii=13 Then        ‘回车符的ACSII码是13  
    a=Val(Text1)  
    If a>=0 And a<=100 Then  
      Text2.SetFocus  
  Else  
        Text1. SetFocus   ;  MsgBox(“分数错”)  
  End If  
  End If  
  End  Sub
找试题 · 找答案 · 找资料 在线模考