home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form NbrStr
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Number Strings"
- ClientHeight = 3840
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7485
- ControlBox = 0 'False
- Height = 4245
- Left = 1035
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3840
- ScaleWidth = 7485
- Top = 1140
- Width = 7605
- Begin TextBox Text1
- Height = 285
- Left = 240
- MaxLength = 9
- TabIndex = 0
- Text = "Text1"
- Top = 1080
- Width = 6975
- End
- Begin CommandButton CmdOkay
- BackColor = &H00C0C0C0&
- Cancel = -1 'True
- Caption = "O &K A Y"
- Height = 375
- Left = 3840
- TabIndex = 4
- Top = 3240
- Width = 3375
- End
- Begin CommandButton CmdWordNumber
- BackColor = &H00C0C0C0&
- Caption = "Get&WordNumber"
- Height = 375
- Left = 3840
- TabIndex = 3
- Top = 2760
- Width = 3375
- End
- Begin CommandButton CmdRomanNumber
- BackColor = &H00C0C0C0&
- Caption = "Get&RomanNumber"
- Height = 375
- Left = 240
- TabIndex = 2
- Top = 3240
- Width = 3375
- End
- Begin CommandButton CmdOrdinalExt
- BackColor = &H00C0C0C0&
- Caption = "Get&OrdinalExt"
- Height = 375
- Left = 240
- TabIndex = 1
- Top = 2760
- Width = 3375
- End
- Begin Label Label3
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "Label3"
- ForeColor = &H00008000&
- Height = 255
- Left = 1560
- TabIndex = 6
- Top = 1800
- Width = 4695
- End
- Begin Label Label2
- BorderStyle = 1 'Fixed Single
- Caption = "Label2"
- Height = 255
- Left = 240
- TabIndex = 7
- Top = 2160
- Width = 6975
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "Label1"
- ForeColor = &H00000080&
- Height = 735
- Left = 1560
- TabIndex = 5
- Top = 240
- Width = 4695
- End
- Sub CmdOkay_Click ()
- Unload Me
- End Sub
- Sub CmdOrdinalExt_Click ()
- lpAmount% = Abs(Val(Text1.Text))
- ReturnString$ = Space$(255)
- GetOrdinalExt lpAmount%, ReturnString$
- Label2.Caption = ReturnString$
- End Sub
- Sub CmdRomanNumber_Click ()
- lpAmount% = Abs(Val(Text1.Text))
- ReturnString$ = Space$(255)
- GetRomanNumber lpAmount%, ReturnString$
- Label2.Caption = ReturnString$
- End Sub
- Sub CmdWordNumber_Click ()
- Amount# = Abs(Val(Text1.Text))
- lpAmount$ = Str$(Amount#)
- ReturnString$ = Space$(255)
- GetWordNumber lpAmount$, ReturnString$
- Label2.Caption = ReturnString$
- End Sub
- Sub Form_Load ()
- FormCenterScreen Me
- nl$ = Chr$(13) + Chr$(10)
- msg$ = "Enter a sample number and then select" + nl$
- msg$ = msg$ + "a command button to view the effect."
- label1.Caption = msg$
- Label2.Caption = ""
- msg$ = "The resultant effect:"
- label3.Caption = msg$
- Text1.Text = "1234"
- Screen.MousePointer = 0
- End Sub
- Sub Form_Paint ()
- DoForm3D Me, sunken, 1, 5
- End Sub
- Sub Text1_Change ()
- If Label2.Caption <> "" Then
- Label2.Caption = ""
- End If
- End Sub
- Sub Text1_GotFocus ()
- Text1.SelStart = 0
- Text1.SelLength = Len(Text1.Text)
- End Sub
-