下载此文档

机械故障诊断软件使用说明书.doc


文档分类:汽车/机械/制造 | 页数:约24页 举报非法文档有奖
1/24
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/24 下载此文档
文档列表 文档介绍
机械故障诊断
软件使用说明书
一、软件程序源代码:
Form1程序
Option Explicit
Private FormOldWidth As Long
Private FormOldHeight As Long
Public Sub ResizeInit(FormName As Form)
Dim Obj As Control
FormOldWidth =
FormOldHeight =
On Error Resume Next
For Each Obj In FormName
= & " " & & " " & & " " & & " "
Next Obj
On Error GoTo 0
End Sub

Public Sub ResizeForm(FormName As Form)
Dim Pos(4) As Double
Dim i As Long, TempPos As Long, StartPos As Long
Dim Obj As Control
Dim ScaleX As Double, ScaleY As Double
ScaleX = / FormOldWidth
ScaleY = / FormOldHeight

On Error Resume Next
For Each Obj In FormName
StartPos = 1
For i = 0 To 4

TempPos = InStr(StartPos, , " ", pare)
If TempPos > 0 Then
Pos(i) = Mid(, StartPos, TempPos - StartPos)
StartPos = TempPos + 1
Else
Pos(i) = 0
End If

Pos(0) * ScaleX, Pos(1) * ScaleY, Pos(2) * ScaleX, Pos(3) * ScaleY
Next i
Next Obj
On Error GoTo 0
End Sub

Private Sub Form_Load()
Call ResizeInit(Me)
End Sub

Private Sub Form_Resize()
Call ResizeForm(Me)
End Sub
Private mand1_Click()


End Sub
Form2程序
Dim Number() As Single
Dim Max As Integer
Dim sum1 As Single, aver As Single, sum2 As Single
Dim d3 As Double, d4 As Double, d5 As Double
Dim m As Double, n As Double, n1 As Double
Dim a As Integer, b As Double, b1 As Double, R As Double
Dim g As Double, h As Double, g1 As Double
Private Sub Form_Load()
= True
End Sub
Private Sub fzc_Click()
Dim i As Integer
= "文件"

ReDim Number(5000) As Single
<> "" Then
For Input As #1
Do While (Not EOF(1))
For i = 1 To 4096
Input #1, Number(i)
Next i
Loop
Close #1
MsgBox "文件1打开成功!", vbOKOnly, "文件打开"
Else
MsgBox "文件1打开失败!", vbOKOnly + vbExcl

机械故障诊断软件使用说明书 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数24
  • 收藏数0 收藏
  • 顶次数0
  • 上传人799474576
  • 文件大小0 KB
  • 时间2014-05-06