home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
- Begin VB.Form Form1
- Caption = "KeyCombo"
- ClientHeight = 3990
- ClientLeft = 2400
- ClientTop = 1650
- ClientWidth = 6330
- LinkTopic = "Form1"
- ScaleHeight = 3990
- ScaleWidth = 6330
- Begin VB.ComboBox Combo3
- Height = 315
- Left = 120
- Sorted = -1 'True
- Style = 2 'Dropdown List
- TabIndex = 14
- Top = 2595
- Width = 2535
- End
- Begin VB.ComboBox Combo2
- Height = 315
- Left = 120
- Sorted = -1 'True
- Style = 2 'Dropdown List
- TabIndex = 13
- Top = 1560
- Width = 2535
- End
- Begin VB.ComboBox Combo1
- Height = 315
- Left = 120
- Sorted = -1 'True
- Style = 2 'Dropdown List
- TabIndex = 12
- Top = 600
- Width = 2535
- End
- Begin VB.CommandButton AddButton
- Caption = "Add New"
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 4920
- TabIndex = 0
- Top = 3240
- Width = 1215
- End
- Begin VB.CommandButton CancelButton
- Caption = "Cancel"
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 3000
- TabIndex = 2
- Top = 3240
- Width = 1215
- End
- Begin VB.CommandButton OKButton
- Caption = "OK"
- BeginProperty Font
- Name = "Verdana"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 4920
- TabIndex = 1
- Top = 3240
- Width = 1215
- End
- Begin Threed.SSPanel SSPanel1
- Height = 2775
- Left = 2880
- TabIndex = 3
- Top = 240
- Width = 3375
- _Version = 65536
- _ExtentX = 5953
- _ExtentY = 4895
- _StockProps = 15
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 1
- BevelInner = 1
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 120
- TabIndex = 7
- Top = 480
- Width = 1455
- End
- Begin VB.TextBox Text2
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 1800
- Locked = -1 'True
- TabIndex = 6
- Top = 480
- Width = 1455
- End
- Begin VB.TextBox Text3
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 120
- Locked = -1 'True
- TabIndex = 5
- Top = 1200
- Width = 3135
- End
- Begin VB.TextBox Text4
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 120
- Locked = -1 'True
- TabIndex = 4
- Top = 1920
- Width = 3135
- End
- Begin Threed.SSPanel SSPanel2
- Height = 255
- Left = 120
- TabIndex = 8
- Top = 240
- Width = 1455
- _Version = 65536
- _ExtentX = 2566
- _ExtentY = 450
- _StockProps = 15
- Caption = "Name"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9.01
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 0
- Font3D = 3
- Alignment = 1
- End
- Begin Threed.SSPanel SSPanel3
- Height = 255
- Left = 1800
- TabIndex = 9
- Top = 240
- Width = 1215
- _Version = 65536
- _ExtentX = 2143
- _ExtentY = 450
- _StockProps = 15
- Caption = "SSN"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9.01
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 0
- Font3D = 3
- Alignment = 1
- End
- Begin Threed.SSPanel SSPanel4
- Height = 255
- Left = 120
- TabIndex = 10
- Top = 960
- Width = 1095
- _Version = 65536
- _ExtentX = 1931
- _ExtentY = 450
- _StockProps = 15
- Caption = "VISA "
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9.01
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 0
- Font3D = 3
- Alignment = 1
- End
- Begin Threed.SSPanel SSPanel5
- Height = 255
- Left = 120
- TabIndex = 11
- Top = 1680
- Width = 1215
- _Version = 65536
- _ExtentX = 2143
- _ExtentY = 450
- _StockProps = 15
- Caption = "AMEX"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9.01
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 0
- Font3D = 3
- Alignment = 1
- End
- End
- Begin Threed.SSPanel SSPanel6
- Height = 255
- Left = 120
- TabIndex = 15
- Top = 285
- Width = 2310
- _Version = 65536
- _ExtentX = 4075
- _ExtentY = 450
- _StockProps = 15
- Caption = "Social Security Number"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9.01
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 0
- Font3D = 3
- Alignment = 1
- End
- Begin Threed.SSPanel SSPanel7
- Height = 255
- Left = 120
- TabIndex = 16
- Top = 1275
- Width = 2310
- _Version = 65536
- _ExtentX = 4075
- _ExtentY = 450
- _StockProps = 15
- Caption = "VISA #"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9.01
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 0
- Font3D = 3
- Alignment = 1
- End
- Begin Threed.SSPanel SSPanel8
- Height = 255
- Left = 120
- TabIndex = 17
- Top = 2340
- Width = 2310
- _Version = 65536
- _ExtentX = 4075
- _ExtentY = 450
- _StockProps = 15
- Caption = "AMEX #"
- BackColor = 12632256
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9.01
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BevelOuter = 0
- Font3D = 3
- Alignment = 1
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim DataArray(999, 3) As String
- Dim ArrayIndex As Integer
- Sub ClearFields()
- Text1.Text = ""
- Text2.Text = ""
- Text2.Locked = False
- Text3.Text = ""
- Text3.Locked = False
- Text4.Text = ""
- Text4.Locked = False
- AddButton.Visible = False
- OKButton.Visible = True
- CancelButton.Visible = True
- End Sub
- Sub ShowButtons()
- OKButton.Visible = False
- CancelButton.Visible = False
- AddButton.Visible = True
- Text2.Locked = True
- Text3.Locked = True
- Text4.Locked = True
- End Sub
- Private Sub AddButton_Click()
- ClearFields
- Text1.SetFocus
- End Sub
- Private Sub CancelButton_Click()
- ShowButtons
- List1_Click
- End Sub
- Private Sub Combo1_Click()
- If Combo1.ListIndex < 0 Then
- Text1.Text = ""
- Text2.Text = ""
- Text3.Text = ""
- Text4.Text = ""
- Exit Sub
- End If
- ItemIndex = Combo1.ItemData(Combo1.ListIndex)
- Text1.Text = DataArray(ItemIndex, 0)
- Text2.Text = DataArray(ItemIndex, 1)
- Text3.Text = DataArray(ItemIndex, 2)
- Text4.Text = DataArray(ItemIndex, 3)
- End Sub
- Private Sub Combo2_Click()
- If Combo2.ListIndex < 0 Then
- Text1.Text = ""
- Text2.Text = ""
- Text3.Text = ""
- Text4.Text = ""
- Exit Sub
- End If
- ItemIndex = Combo2.ItemData(Combo2.ListIndex)
- Text1.Text = DataArray(ItemIndex, 0)
- Text2.Text = DataArray(ItemIndex, 1)
- Text3.Text = DataArray(ItemIndex, 2)
- Text4.Text = DataArray(ItemIndex, 3)
- End Sub
- Private Sub Combo3_Click()
- If Combo3.ListIndex < 0 Then
- Text1.Text = ""
- Text2.Text = ""
- Text3.Text = ""
- Text4.Text = ""
- Exit Sub
- End If
- ItemIndex = Combo3.ItemData(Combo3.ListIndex)
- Text1.Text = DataArray(ItemIndex, 0)
- Text2.Text = DataArray(ItemIndex, 1)
- Text3.Text = DataArray(ItemIndex, 2)
- Text4.Text = DataArray(ItemIndex, 3)
- End Sub
- Private Sub Form_Load()
- End Sub
- Private Sub OKButton_Click()
- Key = Trim(Text1.Text)
- If Key = "" Then
- MsgBox "Key field must be non-mepty"
- Exit Sub
- End If
- ArrayIndex = ArrayIndex + 1
- Combo1.AddItem Text2.Text
- Combo1.ItemData(Combo1.NewIndex) = ArrayIndex
- Combo2.AddItem Text3.Text
- Combo2.ItemData(Combo2.NewIndex) = ArrayIndex
- Combo3.AddItem Text4.Text
- Combo3.ItemData(Combo3.NewIndex) = ArrayIndex
- DataArray(ArrayIndex, 0) = Text1.Text
- DataArray(ArrayIndex, 1) = Text2.Text
- DataArray(ArrayIndex, 2) = Text3.Text
- DataArray(ArrayIndex, 3) = Text4.Text
- Combo1.ListIndex = Combo1.NewIndex
- Combo2.ListIndex = Combo2.NewIndex
- Combo3.ListIndex = Combo3.NewIndex
- ShowButtons
- Text1.SetFocus
- End Sub
-