home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form TestForm
- Caption = "String Operations Test Form"
- ClientHeight = 3990
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5430
- LinkTopic = "Form1"
- ScaleHeight = 3990
- ScaleWidth = 5430
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command3
- Caption = "Convert to Binary"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 450
- Left = 120
- TabIndex = 7
- Top = 3000
- Width = 1815
- End
- Begin VB.TextBox Text4
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 330
- Left = 120
- TabIndex = 6
- Top = 3555
- Width = 5145
- End
- Begin VB.TextBox Text1
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 345
- Left = 2880
- TabIndex = 4
- Text = "9003"
- Top = 75
- Width = 1410
- End
- Begin VB.TextBox Text3
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 330
- Left = 150
- TabIndex = 3
- Top = 2460
- Width = 5145
- End
- Begin VB.CommandButton Command2
- Caption = "Convert to LCaps"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 450
- Left = 150
- TabIndex = 2
- Top = 1905
- Width = 1815
- End
- Begin VB.TextBox Text2
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 330
- Left = 150
- TabIndex = 1
- Top = 1320
- Width = 5145
- End
- Begin VB.CommandButton Command1
- Caption = "Convert to String"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 450
- Left = 150
- TabIndex = 0
- Top = 795
- Width = 1815
- End
- Begin VB.Label Label1
- Caption = "Enter a value (0-9999)"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 120
- Width = 2415
- End
- Attribute VB_Name = "TestForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim NS As New NumStrings.StringClass
- Private Sub Command1_Click()
- Text2.Text = NS.Number2String(Text1.Text)
- End Sub
- Private Sub Command2_Click()
- Dim NStr As String
- NStr = NS.Number2String(Text1.Text)
- Text3.Text = NS.LowerCaps(NStr)
- End Sub
- Private Sub Command3_Click()
- Text4.Text = NS.Integer2Binary(Text1.Text)
- End Sub
-