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

📄 frmcmdcheckvalueproperties.frm

📁 Data monkey是一个强大的是数据传输和转换应用程序。使用DataMonkey用户可以把复杂的文本文件格式
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmCMDCheckValueProperties 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "CheckValue action properties"
   ClientHeight    =   4515
   ClientLeft      =   45
   ClientTop       =   285
   ClientWidth     =   6105
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4515
   ScaleWidth      =   6105
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton btnOk 
      Caption         =   "&Ok"
      Default         =   -1  'True
      Height          =   375
      Left            =   4080
      TabIndex        =   7
      Top             =   4020
      Width           =   855
   End
   Begin VB.CommandButton btnCancel 
      Caption         =   "&Cancel"
      Height          =   375
      Left            =   5100
      TabIndex        =   8
      Top             =   4020
      Width           =   855
   End
   Begin VB.PictureBox CVPicture 
      Appearance      =   0  'Flat
      AutoRedraw      =   -1  'True
      AutoSize        =   -1  'True
      BackColor       =   &H80000005&
      FillColor       =   &H00808080&
      FillStyle       =   0  'Solid
      ForeColor       =   &H8000000A&
      Height          =   510
      Left            =   120
      Picture         =   "frmCMDCheckValueProperties.frx":0000
      ScaleHeight     =   480
      ScaleWidth      =   480
      TabIndex        =   12
      Top             =   120
      Width           =   510
   End
   Begin VB.Frame fraCheckValue 
      Height          =   2475
      Left            =   120
      TabIndex        =   0
      Top             =   1380
      Width           =   5835
      Begin VB.CheckBox chkCaseSensitive 
         Appearance      =   0  'Flat
         Caption         =   "Case sensitive comparison"
         ForeColor       =   &H80000008&
         Height          =   255
         Left            =   240
         TabIndex        =   18
         Top             =   1620
         Width           =   2235
      End
      Begin VB.ComboBox cboNegation 
         Height          =   315
         ItemData        =   "frmCMDCheckValueProperties.frx":0282
         Left            =   1140
         List            =   "frmCMDCheckValueProperties.frx":028C
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   600
         Width           =   1395
      End
      Begin VB.TextBox txtIdentifier 
         Appearance      =   0  'Flat
         Height          =   285
         Left            =   1140
         TabIndex        =   4
         Top             =   1080
         Width           =   2475
      End
      Begin VB.TextBox txtPosition 
         Appearance      =   0  'Flat
         Height          =   285
         Left            =   2820
         TabIndex        =   1
         Text            =   "1"
         Top             =   180
         Width           =   855
      End
      Begin VB.CheckBox chkDelimited 
         Appearance      =   0  'Flat
         Caption         =   "The items of data on this line are separated by the following character(s):"
         ForeColor       =   &H80000008&
         Height          =   435
         Left            =   240
         TabIndex        =   5
         Top             =   1920
         Width           =   3075
      End
      Begin VB.TextBox txtSeparator 
         Appearance      =   0  'Flat
         Height          =   285
         Left            =   3360
         TabIndex        =   6
         Top             =   2100
         Width           =   1095
      End
      Begin VB.TextBox txtLength 
         Appearance      =   0  'Flat
         Height          =   285
         Left            =   4860
         TabIndex        =   2
         Text            =   "1"
         Top             =   180
         Width           =   855
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "To see if it is"
         Height          =   195
         Left            =   180
         TabIndex        =   17
         Top             =   660
         Width           =   885
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "Test the value that starts at"
         Height          =   195
         Left            =   180
         TabIndex        =   16
         Top             =   180
         Width           =   1935
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "To the value"
         Height          =   195
         Left            =   180
         TabIndex        =   11
         Top             =   1080
         Width           =   900
      End
      Begin VB.Label lblLength 
         AutoSize        =   -1  'True
         Caption         =   "Having length"
         Height          =   195
         Left            =   3780
         TabIndex        =   10
         Top             =   180
         Width           =   990
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "Position"
         Height          =   195
         Left            =   2160
         TabIndex        =   9
         Top             =   180
         Width           =   555
      End
   End
   Begin VB.Label lblNotDelimited 
      Caption         =   $"frmCMDCheckValueProperties.frx":02A2
      Height          =   615
      Left            =   840
      TabIndex        =   15
      Top             =   600
      Width           =   5115
   End
   Begin VB.Label Label8 
      Caption         =   "IDENTIFIER TEXT is the text on this line by which it is identified. It should be unique in content or by position."
      Height          =   495
      Left            =   840
      TabIndex        =   14
      Top             =   120
      Width           =   5115
   End
   Begin VB.Label lblDelimited 
      Caption         =   "POSITION should represent the number of delimiters between this data item and the beginning of the line plus one."
      Height          =   435
      Left            =   840
      TabIndex        =   13
      Top             =   600
      Width           =   5085
   End
End
Attribute VB_Name = "frmCMDCheckValueProperties"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mCV As CCmdCheckValue
Public Sub Initialize(ByRef dad As CCmdCheckValue, NameForCaption As String)
    Set mCV = dad

    Me.chkDelimited.value = IIf(mCV.Delimited, 1, 0)
    Me.chkCaseSensitive.value = IIf(mCV.CaseSensitive, 1, 0)
    Me.txtIdentifier.Text = mCV.CompareTo
    Me.txtLength = mCV.Length
    Me.txtPosition = mCV.Position
    Me.txtSeparator = mCV.Delimiter
    cboNegation.ListIndex = IIf(dad.Operator = "<>", 1, 0)
    Me.Caption = "QueryValue Command Properties for " & NameForCaption
    
    Call chkDelimited_Click

End Sub

Private Sub btnCancel_Click()
    GFormReturnValue = vbCancel
    Unload Me
End Sub

Private Sub btnOk_Click()
    
    mCV.Delimited = IIf(chkDelimited.value = 1, True, False)
    mCV.CompareTo = txtIdentifier.Text
    mCV.Length = txtLength.Text
    mCV.Position = txtPosition.Text
    mCV.Delimiter = txtSeparator.Text
    mCV.Operator = IIf(cboNegation.ListIndex = 0, "=", "<>")
    mCV.CaseSensitive = IIf(chkCaseSensitive.value = 1, True, False)
    GFormReturnValue = vbOK
    Unload Me
End Sub

Private Sub chkDelimited_Click()
    
    If chkDelimited.value = 0 Then
        txtLength.Visible = True
        lblLength.Visible = True
        lblDelimited.Visible = False
        lblNotDelimited.Visible = True
        txtSeparator.Enabled = False
    Else
        txtLength.Visible = False
        lblLength.Visible = False
        lblDelimited.Visible = True
        lblNotDelimited.Visible = False
        txtSeparator.Enabled = True
    End If

End Sub

Private Sub Form_Load()
    cboNegation.ListIndex = 0
    GFormReturnValue = vbCancel
    
    Me.Left = (Screen.Width - Me.Width) / 2
    Me.top = (Screen.Height - Me.Height) / 2

End Sub

⌨️ 快捷键说明

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