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

📄 frmmproperties.frm

📁 这是基于MapX4.0的房屋测绘管理信息系统
💻 FRM
字号:
VERSION 5.00
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
Begin VB.Form frmMProperties 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "输入基层和结束层"
   ClientHeight    =   1995
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   3585
   Icon            =   "frmMProperties.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1995
   ScaleWidth      =   3585
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin MSMask.MaskEdBox emNumber 
      Height          =   330
      Left            =   1110
      TabIndex        =   1
      Top             =   660
      Width           =   1920
      _ExtentX        =   3387
      _ExtentY        =   582
      _Version        =   393216
      Format          =   "###"
      PromptChar      =   "_"
   End
   Begin MSMask.MaskEdBox emBase 
      Height          =   330
      Left            =   1110
      TabIndex        =   0
      Top             =   225
      Width           =   1920
      _ExtentX        =   3387
      _ExtentY        =   582
      _Version        =   393216
      Format          =   "###"
      PromptChar      =   "_"
   End
   Begin VB.CommandButton CancelButton 
      Cancel          =   -1  'True
      Caption         =   "取消(&C)"
      Height          =   405
      Left            =   1830
      TabIndex        =   3
      Top             =   1350
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定(&O)"
      Default         =   -1  'True
      Height          =   405
      Left            =   405
      TabIndex        =   2
      Top             =   1350
      Width           =   1215
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "结束层:"
      Height          =   180
      Left            =   375
      TabIndex        =   5
      Top             =   735
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "基层:"
      Height          =   180
      Left            =   555
      TabIndex        =   4
      Top             =   270
      Width           =   540
   End
End
Attribute VB_Name = "frmMProperties"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit
Dim mCanceled As Boolean
Dim mBase As Long
Dim mNumber As Long
Private Sub CancelButton_Click()
    mCanceled = True
    Unload Me
End Sub
Private Sub Form_Load()
    mCanceled = True
End Sub

Private Sub OKButton_Click()
    If Trim(emBase.Text) = "" Then
        mBase = 0
    Else
        mBase = CLng(emBase.Text)
    End If
    If Trim(emNumber.Text) = "" Then
        mNumber = 0
    Else
        mNumber = CLng(emNumber.Text)
    End If
    If mNumber < mBase Then
        MsgBox "结束层应该比基层大"
        
        emNumber.SetFocus
        emNumber.SelStart = 0
        emNumber.SelLength = Len(emNumber.Text)
        Exit Sub
    End If
    mCanceled = False
    Unload Me
End Sub
'是否Cancel
Public Property Get IsCanceled() As Boolean
    IsCanceled = mCanceled
End Property
'返回基层数
Public Property Get BaseNumber() As Long
    BaseNumber = mBase
End Property
'返回层数
Public Property Get LayerNumber() As Long
    LayerNumber = mNumber - mBase + 1
End Property

⌨️ 快捷键说明

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