⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 vb电子书籍
💻 FRM
字号:
   VERSION 5.00
   Begin VB.Form Form1
      BackColor       =   &H00E0E0E0&
      ClientHeight    =   3195
      ClientLeft      =   60
      ClientTop       =   345
      ClientWidth     =   6270
      FillColor       =   &H00C0C0C0&
      BeginProperty Font
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Icon            =   "Form1.frx":0000
      LinkTopic       =   "Form1"
      MaxButton       =   0   'False
      ScaleHeight     =   3195
      ScaleWidth      =   6270
      StartUpPosition =   2  '屏幕中心
      Begin VB.CommandButton Command1
         Caption         =   "Command1"
         Height          =   375
         Left            =   2160
         TabIndex        =   0
         Top             =   2040
         Width           =   1695
      End
   End
   Attribute VB_Name = "Form1"
   Attribute VB_GlobalNameSpace = False
   Attribute VB_Creatable = False
   Attribute VB_PredeclaredId = True
   Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 函数名称:tim
'## 参数:a(  类型不确定
'As Integer)'## 返回类型:As Integer)
'##################################################################
Function tim(a() As Integer)
    Dim t#, i%
    t = 1
    For i = LBound(a) To UBound(a)
        t = t * a(i)
    Next i
    tim = t
End Function
    
'##################################################################
'## 过程名称:Command1_Click
'## 参数: 无
'##################################################################
Private Sub Command1_Click()
    Dim a%(1 To 5), b%(2 To 10), i%, t1#, t2#
    For i = 1 To 5
        a(i) = i
    Next i
    For i = 2 To 10
        b(i) = i
    Next i
    t1 = tim(a())
    t2 = tim(b())
    Print "t1=", t1, "t2=", t2
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -