home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH6 / 6-2-1.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-09-18  |  1.5 KB  |  53 lines

  1. VERSION 5.00
  2. Begin VB.Form frmPhone 
  3.    Caption         =   "Directory"
  4.    ClientHeight    =   1935
  5.    ClientLeft      =   1275
  6.    ClientTop       =   1620
  7.    ClientWidth     =   2400
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   1935
  20.    ScaleWidth      =   2400
  21.    Begin VB.PictureBox picNumbers 
  22.       Height          =   975
  23.       Left            =   120
  24.       ScaleHeight     =   915
  25.       ScaleWidth      =   2115
  26.       TabIndex        =   1
  27.       Top             =   840
  28.       Width           =   2175
  29.    End
  30.    Begin VB.CommandButton cmdDisplay 
  31.       Caption         =   "Display Phone Numbers"
  32.       Height          =   495
  33.       Left            =   120
  34.       TabIndex        =   0
  35.       Top             =   120
  36.       Width           =   2175
  37.    End
  38. Attribute VB_Name = "frmPhone"
  39. Attribute VB_GlobalNameSpace = False
  40. Attribute VB_Creatable = False
  41. Attribute VB_PredeclaredId = True
  42. Attribute VB_Exposed = False
  43. Private Sub cmdDisplay_Click()
  44.   Dim nom As String, phoneNum As String
  45.   picNumbers.Cls
  46.   Open App.Path & "\PHONE.TXT" For Input As #1
  47.   Do While Not EOF(1)
  48.     Input #1, nom, phoneNum
  49.     picNumbers.Print nom, phoneNum
  50.   Loop
  51.   Close #1
  52. End Sub
  53.