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

📄 新安江模型.frm

📁 可直接用于新安江模型计算
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5520
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8160
   Icon            =   "新安江模型.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5520
   ScaleWidth      =   8160
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command3 
      Caption         =   "draw"
      Height          =   735
      Left            =   6840
      TabIndex        =   3
      Top             =   3600
      Width           =   1335
   End
   Begin VB.PictureBox Pic1 
      AutoRedraw      =   -1  'True
      Height          =   5295
      Left            =   840
      ScaleHeight     =   5235
      ScaleWidth      =   5955
      TabIndex        =   2
      Top             =   0
      Width           =   6015
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   3840
      Top             =   2520
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "output"
      Height          =   495
      Left            =   6840
      TabIndex        =   1
      Top             =   2160
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "readdata"
      Height          =   495
      Left            =   6840
      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
Private Sub Command1_Click()
Dim myfile As String
Dim j As Integer
CommonDialog1.Filter = "*.text|*.txt"
CommonDialog1.ShowOpen
CommonDialog1.CancelError = True
myfile = CommonDialog1.FileName
On Error GoTo err
   Open myfile For Input As #1
   Input #1, m, area, dt
   'ReDim par(8) As Single
   'ReDim qi(n) As Single, qo(n) As Single
        For i = 1 To 13
            Input #1, par(i)
            'Print par(i),
            'If i Mod 4 = 0 Then Print
        Next i
        
        ReDim uh(m) As Single
        For i = 1 To m
            ReDim Preserve uh(i) As Single
            Input #1, uh(i)
            'Print uh(i),
            'If i Mod 4 = 0 Then Print
        Next i
        Input #1, w(1), w(2), w(3), fr, s, qrss0, qrg0
        Input #1, year1, im, id, ih, em1, ed, eh, n
        
        For i = 1 To n
        ReDim Preserve ep(i) As Single
        ReDim Preserve p(i) As Single
         ReDim Preserve qr(i) As Single
            Input #1, ep(i)
            'Print ep(i),
            'If i Mod 4 = 0 Then Print
        Next i
        For i = 1 To n
            Input #1, p(i)
            'Print p(i),
            'If i Mod 4 = 0 Then Print
        Next i
    Close
err:
CommonDialog1.CancelError = False
End Sub

Private Sub Command2_Click()
Call xajmx(n, m, par, area, uh, dt, p, ep, qr, w, fr, s, qrss0, qrg0)
For i = 1 To n
Print qr(i)
Next i
End Sub

Private Sub Command3_Click()
Max = 0
For i = 1 To n
   If Max < qr(i) Then Max = qr(i)
Next i
Pic1.Scale (-1, Max + 200)-(n + 1, -50)
Pic1.Line (0, 0)-(n + 1, 0)
Pic1.Line (0, Max + 190)-(n + 1, Max + 190)
Pic1.Line (0, -50)-(0, Max + 200)
For i = 1 To n - 1
 Pic1.Line (i, qr(i))-(i + 1, qr(i + 1)), vbRed
 Pic1.Line (i, p(i))-(i + 1, p(i + 1)), vbGreen
Next i

End Sub

⌨️ 快捷键说明

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