home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / foxadr / list_for.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-08  |  2.3 KB  |  88 lines

  1. VERSION 2.00
  2. Begin Form list_form 
  3.    Caption         =   "List of names"
  4.    ClientHeight    =   6240
  5.    ClientLeft      =   2835
  6.    ClientTop       =   2235
  7.    ClientWidth     =   7380
  8.    Height          =   6645
  9.    Left            =   2775
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   6240
  12.    ScaleWidth      =   7380
  13.    Top             =   1890
  14.    Width           =   7500
  15.    Begin CommandButton list_ref_but 
  16.       Caption         =   "&Refresh"
  17.       Height          =   435
  18.       Left            =   4740
  19.       TabIndex        =   5
  20.       Top             =   5640
  21.       Width           =   1875
  22.    End
  23.    Begin CommandButton list_canc_but 
  24.       Caption         =   "&Cancel"
  25.       Height          =   435
  26.       Left            =   2820
  27.       TabIndex        =   2
  28.       Top             =   5640
  29.       Width           =   1815
  30.    End
  31.    Begin CommandButton list_ok_but 
  32.       Caption         =   "&OK"
  33.       Height          =   435
  34.       Left            =   900
  35.       TabIndex        =   1
  36.       Top             =   5640
  37.       Width           =   1815
  38.    End
  39.    Begin Grid list_grid 
  40.       Height          =   4815
  41.       Left            =   300
  42.       ScrollBars      =   2  'Vertical
  43.       TabIndex        =   0
  44.       Top             =   600
  45.       Visible         =   0   'False
  46.       Width           =   6495
  47.    End
  48.    Begin Label Label2 
  49.       Caption         =   "Surname"
  50.       Height          =   315
  51.       Left            =   3360
  52.       TabIndex        =   4
  53.       Top             =   180
  54.       Width           =   2595
  55.    End
  56.    Begin Label Label1 
  57.       Caption         =   "Forename"
  58.       Height          =   315
  59.       Left            =   360
  60.       TabIndex        =   3
  61.       Top             =   180
  62.       Width           =   2595
  63.    End
  64. Sub list_canc_but_Click ()
  65. list_form.Hide
  66. ' restore previous current record
  67. criteria = "recnum = " + Str(curr_rec)
  68. adr_ds.FindFirst criteria
  69. upd_fields
  70. End Sub
  71. Sub list_ok_but_Click ()
  72. list_grid.Col = 2
  73. recstr = list_grid.Text
  74. If recstr <> "" Then
  75. criteria = "recnum=cint(" + recstr + ")"
  76. adr_ds.FindFirst criteria
  77. If adr_ds.NoMatch Then
  78. adr_ds.MoveFirst
  79. End If
  80. adr_ds.MoveFirst
  81. End If
  82. list_form.Hide
  83. upd_fields
  84. End Sub
  85. Sub list_ref_but_Click ()
  86. upd_list
  87. End Sub
  88.