practice8_42.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 70 行

FRM
70
字号
VERSION 5.00
Begin VB.Form Form2 
   Caption         =   "Form2"
   ClientHeight    =   2265
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2970
   LinkTopic       =   "Form2"
   ScaleHeight     =   2265
   ScaleWidth      =   2970
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "排序"
      Height          =   375
      Left            =   1680
      TabIndex        =   3
      Top             =   1680
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "生成随机数"
      Height          =   375
      Left            =   240
      TabIndex        =   2
      Top             =   1680
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   1  'Horizontal
      TabIndex        =   1
      Text            =   "practice8_42.frx":0000
      Top             =   960
      Width           =   2655
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   1  'Horizontal
      TabIndex        =   0
      Text            =   "practice8_42.frx":0008
      Top             =   120
      Width           =   2655
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim x(1 To 50) As Integer
Private Sub Command1_Click()
  Text1.Text = ""
  For i = 1 To 50
    x(i) = Int(Rnd * 101)
    Text1.Text = Text1.Text & Str(x(i))
  Next i
End Sub

Private Sub Command2_Click()
  Call s(x(), 50)
  Text2.Text = ""
  For i = 1 To 50
    Text2.Text = Text2.Text & Str(x(i))
  Next i
End Sub

⌨️ 快捷键说明

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