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

📄 frm_sjgsd.frm

📁 很好的行政管理系统,供大家享用,功能非常强大,希望大家的支持
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frm_Sjgsd 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "手机归属地查询"
   ClientHeight    =   2115
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3810
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   ScaleHeight     =   2115
   ScaleWidth      =   3810
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text2 
      BackColor       =   &H00FFC0C0&
      Height          =   1020
      Left            =   165
      MultiLine       =   -1  'True
      TabIndex        =   4
      Top             =   960
      Width           =   3480
   End
   Begin VB.CommandButton Cmd_Cancel 
      Caption         =   "取消"
      Height          =   345
      Left            =   2715
      TabIndex        =   3
      Top             =   495
      Width           =   930
   End
   Begin VB.CommandButton Cmd_Ok 
      Caption         =   "确定"
      Height          =   345
      Left            =   2715
      TabIndex        =   2
      Top             =   90
      Width           =   930
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FFFFC0&
      Height          =   330
      Left            =   165
      MaxLength       =   11
      TabIndex        =   1
      Top             =   495
      Width           =   2430
   End
   Begin VB.Label Label1 
      Caption         =   "请输入您的手机号码(前七位)"
      Height          =   225
      Left            =   135
      TabIndex        =   0
      Top             =   150
      Width           =   2595
   End
End
Attribute VB_Name = "frm_Sjgsd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Cmd_Ok_Click()
  On Error Resume Next
  If Not IsNumeric(Text1.Text) Then
    Text1.Text = ""
  Else
     AdoRs.Open "select * from 手机归属地 where start = '" + Mid(Text1.Text, 1, 7) + "' ", Cnn, adOpenKeyset
       If AdoRs.RecordCount > 0 Then
          Text2.Text = "省份: " & AdoRs.Fields("city") & Chr(13) + Chr(10) & "城市: " & AdoRs.Fields("city1") & Chr(13) + Chr(10) & "网络: " & AdoRs.Fields("url")
       Else
          Text2.Text = "手机地区: 未知!!!"
       End If
     AdoRs.Close
  End If
End Sub

Private Sub Text1_Change()
  On Error Resume Next
  If Not IsNumeric(Text1.Text) Then
    Text1.Text = ""
  Else
     AdoRs.Open "select * from 手机归属地 where start = '" + Mid(Text1.Text, 1, 7) + "' ", Cnn, adOpenKeyset
       If AdoRs.RecordCount > 0 Then
          Text2.Text = "省份: " & AdoRs.Fields("city") & Chr(13) + Chr(10) & "城市: " & AdoRs.Fields("city1") & Chr(13) + Chr(10) & "网络: " & AdoRs.Fields("url")
       Else
          Text2.Text = "手机地区: 未知!!!"
       End If
     AdoRs.Close
  End If
End Sub

⌨️ 快捷键说明

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