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 / CH3 / 3-6-2.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-09-19  |  1.5 KB  |  51 lines

  1. VERSION 5.00
  2. Begin VB.Form frm3_6_2 
  3.    Caption         =   "3-6-2"
  4.    ClientHeight    =   1620
  5.    ClientLeft      =   1092
  6.    ClientTop       =   1488
  7.    ClientWidth     =   2664
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   7.8
  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     =   1620
  20.    ScaleWidth      =   2664
  21.    Begin VB.PictureBox picResults 
  22.       Height          =   495
  23.       Left            =   120
  24.       ScaleHeight     =   444
  25.       ScaleWidth      =   2244
  26.       TabIndex        =   1
  27.       Top             =   120
  28.       Width           =   2295
  29.    End
  30.    Begin VB.CommandButton cmdEvaluate 
  31.       Caption         =   "Evaluate Functions"
  32.       Height          =   495
  33.       Left            =   120
  34.       TabIndex        =   0
  35.       Top             =   840
  36.       Width           =   2295
  37.    End
  38. Attribute VB_Name = "frm3_6_2"
  39. Attribute VB_GlobalNameSpace = False
  40. Attribute VB_Creatable = False
  41. Attribute VB_PredeclaredId = True
  42. Attribute VB_Exposed = False
  43. Private Sub cmdEvaluate_Click()
  44.   Dim a As Single, b As Single
  45.   'Evaluate functions at expressions
  46.   picResults.Cls
  47.   a = 2
  48.   b = 3
  49.   picResults.Print Sqr(5 * b + 1); Int(a ^ b); Round(a / b, 3)
  50. End Sub
  51.