VERSION 5.00
Begin VB.Form Form2 
   BorderStyle     =   3  'Œ޲۸
   Caption         =   "Sram Set"
   ClientHeight    =   1275
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3225
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1275
   ScaleWidth      =   3225
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'Ű ̫т̒
   Begin VB.TextBox txtOffset 
      BeginProperty Font 
         Name            =   "lr SVbN"
         Size            =   24
         Charset         =   128
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   480
      IMEMode         =   3  '̌Œ
      Left            =   120
      Locked          =   -1  'True
      TabIndex        =   3
      Text            =   "0004000"
      Top             =   240
      Width           =   2055
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   840
      Width           =   1335
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "Set"
      Default         =   -1  'True
      Height          =   375
      Left            =   360
      TabIndex        =   1
      Top             =   840
      Width           =   1335
   End
   Begin VB.TextBox txtData 
      Alignment       =   1  'E
      BeginProperty Font 
         Name            =   "lr SVbN"
         Size            =   24
         Charset         =   128
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   480
      IMEMode         =   3  '̌Œ
      Left            =   2400
      TabIndex        =   0
      Text            =   "00"
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
    Dim strTxt As String
    Dim setData As Byte
    Dim SramData(0) As Byte
    strTxt = txtData.Text

    If Len(strTxt) < 3 Then
        SramData(0) = Val("&h" & strTxt)
        Call fcrasSRAMWritePhy(Val("&h" & txtOffset.Text), SramData(0), 1)
        Unload Me
    Else
        MsgBox ("Invalid error. Range is from 00 to FF.")
    End If
    
End Sub
