📄 roman.frm
字号:
VERSION 5.00
Begin VB.Form frmRoman
BorderStyle = 3 'Fixed Dialog
Caption = "Convert to Roman"
ClientHeight = 2895
ClientLeft = 45
ClientTop = 330
ClientWidth = 4665
Icon = "Roman.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2895
ScaleWidth = 4665
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.Frame fraFrame1
Caption = "Converto Roman to Arabic"
Height = 1305
Index = 1
Left = 120
TabIndex = 4
Top = 1500
Width = 4425
Begin VB.TextBox txtSource
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Index = 1
Left = 150
TabIndex = 7
Text = "MCMXCIX"
Top = 330
Width = 2580
End
Begin VB.TextBox txtTarget
BackColor = &H8000000F&
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Index = 1
Left = 2850
Locked = -1 'True
TabIndex = 6
Top = 330
Width = 1440
End
Begin VB.CommandButton cmdToArabic
Caption = "Convert to Arabic"
Default = -1 'True
Height = 375
Left = 120
TabIndex = 5
Top = 780
Width = 1845
End
End
Begin VB.Frame fraFrame1
Caption = "Converto Arabic to Roman"
Height = 1305
Index = 0
Left = 120
TabIndex = 0
Top = 60
Width = 4425
Begin VB.CommandButton cmdToRoman
Caption = "Convert to Roman"
Height = 375
Left = 120
TabIndex = 3
Top = 780
Width = 1845
End
Begin VB.TextBox txtSource
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Index = 0
Left = 120
TabIndex = 2
Text = "1999"
Top = 330
Width = 1440
End
Begin VB.TextBox txtTarget
BackColor = &H8000000F&
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Index = 0
Left = 1710
Locked = -1 'True
TabIndex = 1
Top = 330
Width = 2580
End
End
End
Attribute VB_Name = "frmRoman"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim objNumeric As New FLWData.FWNumeric
Private Sub cmdToRoman_Click()
txtTarget(0) = objNumeric.ToRoman(txtSource(0))
End Sub
Private Sub cmdToArabic_Click()
txtTarget(1) = objNumeric.ToArabic(txtSource(1))
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -