VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdEqual 
      Caption         =   "="
      Height          =   375
      Left            =   2880
      TabIndex        =   13
      Top             =   2640
      Width           =   375
   End
   Begin VB.CommandButton cmdPlus 
      Caption         =   "+"
      Height          =   375
      Left            =   2400
      TabIndex        =   12
      Top             =   2640
      Width           =   375
   End
   Begin VB.CommandButton cmdPoint 
      Caption         =   "."
      Height          =   375
      Left            =   1920
      TabIndex        =   11
      Top             =   2640
      Width           =   375
   End
   Begin VB.TextBox txtNumber 
      Height          =   375
      Left            =   600
      TabIndex        =   10
      Top             =   360
      Width           =   3135
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "9"
      Height          =   375
      Index           =   9
      Left            =   2400
      TabIndex        =   9
      Top             =   1200
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "8"
      Height          =   375
      Index           =   8
      Left            =   1920
      TabIndex        =   8
      Top             =   1200
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "7"
      Height          =   375
      Index           =   7
      Left            =   1440
      TabIndex        =   7
      Top             =   1200
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "6"
      Height          =   375
      Index           =   6
      Left            =   2400
      TabIndex        =   6
      Top             =   1680
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "5"
      Height          =   375
      Index           =   5
      Left            =   1920
      TabIndex        =   5
      Top             =   1680
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "4"
      Height          =   375
      Index           =   4
      Left            =   1440
      TabIndex        =   4
      Top             =   1680
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "3"
      Height          =   375
      Index           =   3
      Left            =   2400
      TabIndex        =   3
      Top             =   2160
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "2"
      Height          =   375
      Index           =   2
      Left            =   1920
      TabIndex        =   2
      Top             =   2160
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "1"
      Height          =   375
      Index           =   1
      Left            =   1440
      TabIndex        =   1
      Top             =   2160
      Width           =   375
   End
   Begin VB.CommandButton cmdBtn 
      Caption         =   "0"
      Height          =   375
      Index           =   0
      Left            =   1440
      TabIndex        =   0
      Top             =   2640
      Width           =   375
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mdblResult As Double

Private Sub cmdBtn_Click(Index As Integer)

    txtNumber = txtNumber & Index
    
End Sub


Private Sub cmdEqual_Click()

    mdblResult = mdblResult + Val(txtNumber)
    txtNumber = mdblResult

End Sub

Private Sub cmdPlus_Click()

    mdblResult = mdblResult + Val(txtNumber)
    txtNumber = ""
    
End Sub

Private Sub cmdPoint_Click()

    txtNumber = txtNumber & "."

End Sub

