⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zifu.frm

📁 关于数据库的开发
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3765
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5700
   LinkTopic       =   "Form1"
   ScaleHeight     =   3765
   ScaleWidth      =   5700
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command3 
      Caption         =   "替换"
      Height          =   615
      Left            =   3840
      TabIndex        =   4
      Top             =   2640
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "向后查找"
      Height          =   615
      Left            =   3840
      TabIndex        =   3
      Top             =   1560
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "向前查找"
      Height          =   615
      Left            =   3840
      TabIndex        =   2
      Top             =   480
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      Height          =   1455
      Left            =   480
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   1
      Text            =   "zifu.frx":0000
      Top             =   1920
      Width           =   2895
   End
   Begin VB.TextBox Text1 
      Height          =   1215
      Left            =   480
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Text            =   "zifu.frx":0006
      Top             =   360
      Width           =   2895
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Dim k As Integer, r As String, X As Integer, p As Integer

Private Sub Command2_Click()
k = InStr(p + 1, Text1.Text, Text2.Text, 1)
If k = 0 Then
X = MsgBox("没有找到:" + Text2.Text, 0, "查找")
Else
Text1.SetFocus
Text1.SelStart = k - 1
Text1.SelLength = Len(Text2.Text)
p = Text1.SelStart + Len(Text2.Text)
End If
End Sub

Private Sub Command1_Click()
k = InStrRev(Text1.Text, Text2.Text, p, 1)
If k = 0 Then
X = MsgBox("没有找到:" + Text2.Text, 0, "查找")
Else
Text1.SetFocus
Text1.SelStart = k - 1
Text1.SelLength = Len(Text2.Text)
p = Text1.SelStart
End If
End Sub

Private Sub Command3_Click()
If Text1.SelText = "" Then
X = MsgBox("请设定要替换的内容", 0, "错误")
Else
r = InputBox("请输入替换内容", "替换")
End If
If r = "" Then
Else
Text1.SelText = r
End If
End Sub

Private Sub Form_Load()
Text1.Text = "合肥工业大学 地理信息系统  2005级1-2班"
Text2.Text = "地理"
End Sub

Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
p = Text1.SelStart
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -