formselect.frm

来自「用XML做专家系统的一个编译器,有说明书,使用简单,有模板」· FRM 代码 · 共 240 行

FRM
240
字号
VERSION 5.00
Begin VB.Form FormSelect 
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000005&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Dest"
   ClientHeight    =   3870
   ClientLeft      =   45
   ClientTop       =   375
   ClientWidth     =   5175
   LinkTopic       =   "Form3"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3870
   ScaleWidth      =   5175
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      BackColor       =   &H80000005&
      BorderStyle     =   0  'None
      Caption         =   "说明"
      Height          =   780
      Left            =   0
      TabIndex        =   9
      Top             =   2880
      Width           =   5175
      Begin VB.Label lblExplain 
         BackColor       =   &H80000005&
         ForeColor       =   &H8000000D&
         Height          =   480
         Left            =   120
         TabIndex        =   10
         Top             =   240
         Width           =   4695
      End
   End
   Begin VB.CommandButton NextButton 
      Caption         =   "下一步(&N)>>"
      Default         =   -1  'True
      Height          =   375
      Left            =   3840
      TabIndex        =   8
      Top             =   2400
      Width           =   1215
   End
   Begin VB.CommandButton PrevButton 
      Caption         =   "上一步(&P)<<"
      Enabled         =   0   'False
      Height          =   375
      Left            =   2400
      TabIndex        =   7
      Top             =   2400
      Width           =   1215
   End
   Begin VB.PictureBox Picture1 
      Appearance      =   0  'Flat
      BackColor       =   &H80000001&
      BorderStyle     =   0  'None
      FillStyle       =   0  'Solid
      FontTransparent =   0   'False
      ForeColor       =   &H80000008&
      Height          =   735
      Left            =   2040
      ScaleHeight     =   735
      ScaleWidth      =   3375
      TabIndex        =   4
      Top             =   0
      Width           =   3375
   End
   Begin VB.ComboBox Combo1 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   360
      ItemData        =   "FormSelect.frx":0000
      Left            =   3840
      List            =   "FormSelect.frx":000D
      TabIndex        =   3
      Text            =   "="
      Top             =   840
      Width           =   1092
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H80000005&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Index           =   0
      Left            =   720
      TabIndex        =   0
      Top             =   1080
      Visible         =   0   'False
      Width           =   495
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000005&
      X1              =   0
      X2              =   5400
      Y1              =   0
      Y2              =   0
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      X1              =   0
      X2              =   5400
      Y1              =   120
      Y2              =   120
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "用户选择"
      BeginProperty Font 
         Name            =   "华文新魏"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   375
      Left            =   120
      TabIndex        =   5
      Top             =   240
      Width           =   1335
   End
   Begin VB.Label Label3 
      Alignment       =   2  'Center
      BackColor       =   &H80000001&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   0
      TabIndex        =   6
      Top             =   0
      Width           =   2055
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackColor       =   &H80000005&
      Height          =   195
      Left            =   120
      TabIndex        =   2
      Top             =   840
      Width           =   45
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "Label1"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   375
      Index           =   0
      Left            =   1680
      TabIndex        =   1
      Top             =   1080
      Visible         =   0   'False
      Width           =   2175
   End
End
Attribute VB_Name = "FormSelect"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
PrevButton.Enabled = False
NextButton.Enabled = False
If (RecordIndex = 0) Then
   PrevButton.Enabled = False
End If
End Sub

Private Sub NextButton_Click()
Dim i As Integer
Dim tempstring As String
Dim item As ListItem
savequeue(RecordIndex, 2) = Combo1.Text
savequeue(RecordIndex, 4) = savequeue(RecordIndex, 0) + savequeue(RecordIndex, 1) + " " + savequeue(RecordIndex, 2) + " " + savequeue(RecordIndex, 3)
If (Reverse_Reason_flag = 1) Then  ' 如果是反向推理
    yes.Attrib(yes.Att_number).Object = savequeue(RecordIndex, 0)
    yes.Attrib(yes.Att_number).attribute = savequeue(RecordIndex, 1)
    yes.Attrib(yes.Att_number).relation = savequeue(RecordIndex, 2)
    yes.Attrib(yes.Att_number).value = savequeue(RecordIndex, 3)
    yes.Att_number = yes.Att_number + 1
End If
Set item = frmOutput.LVoutput.ListItems.Add(, , "用户信息", 3, 3)
item.SubItems(1) = savequeue(RecordIndex, 4)
user_information_code = user_information_code + 1
RecordIndex = RecordIndex + 1
Unload Me
End Sub

Private Sub Option1_Click(Index As Integer)
savequeue(RecordIndex, 3) = Label1(Index)
NextButton.Enabled = True
End Sub


Private Sub PrevButton_Click()
If (RecordIndex > 0) Then
RecordIndex = RecordIndex - 1
End If
Unload Me
End Sub

⌨️ 快捷键说明

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