?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text2
Height = 975
Left = 1440
TabIndex = 3
Top = 1680
Width = 2775
End
Begin VB.TextBox Text1
Height = 975
Left = 1440
TabIndex = 1
Top = 120
Width = 2655
End
Begin VB.Label Label2
Caption = "回文判斷:"
Height = 495
Left = 240
TabIndex = 2
Top = 1800
Width = 1095
End
Begin VB.Label Label1
Caption = "輸入:"
Height = 495
Left = 360
TabIndex = 0
Top = 360
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Function Ishui(ByVal ss$) As Boolean
Dim s1 As String
s1 = StrReverse(ss)
If s1 = ss Then
Ishui = True
End If
End Function
Private Sub Text1_keypress(keyascii As Integer)
Dim str As String
str = Text1.Text
If keyascii = 13 Then
If Ishui(str) = True Then
Text2.Text = Text1.Text & " *"
Else
Text2.Text = Text1.Text
End If
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -