VERSION 5.00 Begin VB.Form Form21 BorderStyle = 4 'Fixed ToolWindow Caption = "Search on table" ClientHeight = 540 ClientLeft = 30 ClientTop = 270 ClientWidth = 4995 LinkTopic = "Form21" MaxButton = 0 'False MDIChild = -1 'True MinButton = 0 'False ScaleHeight = 540 ScaleWidth = 4995 ShowInTaskbar = 0 'False Begin VB.CommandButton Command3 Caption = "Cancel" BeginProperty Font Name = "Arial" Size = 7.5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 252 Left = 4200 TabIndex = 3 Top = 120 Width = 732 End Begin VB.CommandButton Command2 Caption = "next" BeginProperty Font Name = "Arial" Size = 7.5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 252 Left = 3360 TabIndex = 2 Top = 120 Width = 732 End Begin VB.CommandButton Command1 Caption = "Search" BeginProperty Font Name = "Arial" Size = 7.5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 252 Left = 2520 TabIndex = 1 Top = 120 Width = 732 End Begin VB.ComboBox CB1 BeginProperty Font Name = "Arial" Size = 7.5 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 288 Left = 240 TabIndex = 0 Text = "\" Top = 120 Width = 2172 End End Attribute VB_Name = "Form21" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Target$ = CB1.Text l = Len(Target$) For i = 1 To Numcamp1 dat$ = left(NomeCamp(i), l) If dat$ = Target$ Then BackGrnd.FG1.Row = i BackGrnd.FG1.col = 0 BackGrnd.FG1.ColSel = NumElem0 BackGrnd.FG1.RowSel = i BackGrnd.FG1.TopRow = i Sel = i Exit Sub End If Next i MsgBox "End of search" End Sub Private Sub Command2_Click() Target$ = CB1.Text l = Len(Target$) For i = Sel + 1 To Numcamp1 dat$ = left(NomeCamp(i), l) If dat$ = Target$ Then BackGrnd.FG1.Row = i BackGrnd.FG1.col = 0 BackGrnd.FG1.ColSel = NumElem0 BackGrnd.FG1.RowSel = i BackGrnd.FG1.TopRow = i Sel = i Exit Sub End If Next i If Sel = 0 Then MsgBox "End of search" Exit Sub End If MsgBox "End of search" End Sub Private Sub Command3_Click() Form21.Hide End Sub