home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form AsciiConvert
- BorderStyle = 1 'Fixed Single
- Caption = "Ascii Converter"
- ClientHeight = 975
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3255
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 975
- ScaleWidth = 3255
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Char
- Height = 375
- Left = 1680
- TabIndex = 1
- Top = 480
- Width = 1455
- End
- Begin VB.TextBox Ascii
- Height = 375
- Left = 120
- TabIndex = 0
- Top = 480
- Width = 1455
- End
- Begin VB.Label lblChar
- Alignment = 2 'Center
- Caption = "Character"
- Height = 255
- Left = 1680
- TabIndex = 3
- Top = 120
- Width = 1455
- End
- Begin VB.Label lblAscii
- Alignment = 2 'Center
- Caption = "Ascii Code"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 1455
- End
- Attribute VB_Name = "AsciiConvert"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Ascii_Change()
- If IsNumeric(Ascii.Text) = True Then
- If Ascii.Text > 255 Then
- Ascii.Text = "255"
- ElseIf Ascii.Text < 0 Then
- Ascii.Text = "0"
- End If
- Char.Text = Chr(Ascii.Text)
- Else
- Ascii.Text = ""
- End If
- End Sub
- Private Sub Char_Change()
- If Char.Text = "" Then
- ElseIf Ascii.Text = "game" Or Ascii.Text = "play" Then
- MsgBox ("Click on File, then Game to play the Ascii Game")
- AsciiTable.mnuGame.Visible = True
- Else
- Ascii.Text = Asc(Char.Text)
- End If
- End Sub
-