home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
archive
/
exds100.lzh
/
SPACK.LZH
/
EXCEED7.FRM
< prev
next >
Wrap
Text File
|
1995-09-30
|
7KB
|
242 lines
VERSION 2.00
Begin Form Sdev
BackColor = &H00C0C0C0&
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 3810
Icon = EXCEED7.FRX:0000
Left = 1425
LinkTopic = "Form1"
ScaleHeight = 3360
ScaleWidth = 7530
Top = 1080
Width = 7650
Begin TextBox Text2
BackColor = &H0000FFFF&
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 435
Index = 0
Left = 1710
TabIndex = 10
Text = "data14.txt"
Top = 210
Width = 3705
End
Begin CommandButton command1
Caption = "閲覧"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 465
Left = 5490
TabIndex = 9
Top = 210
Width = 855
End
Begin CommandButton QQQ
Caption = "Help"
Height = 375
Index = 1
Left = 2910
TabIndex = 3
Top = 2700
Width = 1545
End
Begin CommandButton CMD
Caption = "実行"
Height = 495
Left = 1740
TabIndex = 2
Top = 2580
Width = 1095
End
Begin CommandButton QQQ
Caption = "Quit"
Height = 375
Index = 0
Left = 4590
TabIndex = 0
Top = 2700
Width = 1545
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "ファイル1"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 1
Left = 30
TabIndex = 11
Top = 270
Width = 1635
End
Begin Label Label4
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "平均値"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 345
Index = 2
Left = 510
TabIndex = 8
Top = 780
Width = 1155
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 2
Left = 1710
TabIndex = 7
Top = 1230
Width = 1545
End
Begin Label Label4
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "標準偏差"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 345
Index = 1
Left = 510
TabIndex = 6
Top = 1260
Width = 1155
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 1
Left = 1710
TabIndex = 5
Top = 720
Width = 1545
End
Begin Label Label1
BackStyle = 0 '透明
Caption = "返却値 0:エラー n>0:サンプル数"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 345
Left = 2400
TabIndex = 4
Top = 2010
Width = 3855
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 0
Left = 1740
TabIndex = 1
Top = 1920
Width = 495
End
End
Option Explicit
Dim entmode As Integer
Sub CMD_Click ()
Dim s1 As String
'''''Dim s3 As String * 1025
Dim s2 As String * 1025
Dim devs As String * 256
Dim aves As String * 256
Dim samp As Integer
Dim rr, rt
s1 = text2(0).Text
rr = Len(Trim(s1))
'
If rr <= 0 Then
MsgBox "ファイル名を指定して下さい", 64, "設定エラー"
Exit Sub
End If
'
samp = StandardDev%(s1, s2)
'
label3(0).Caption = Str$(samp)
rt = Extract%(1, 1, s2, aves)
label3(1).Caption = aves
rt = Extract%(1, 2, s2, devs)
label3(2).Caption = devs
End Sub
Sub Command1_Click ()
Dim t
Dim sFiles As String
sFiles = text2(0).Text
t = Shell("notepad.exe " + sFiles, 1)
End Sub
Sub Form_Load ()
Dim i As Integer
i = StrMain.CMD(0).Tag
Caption = StrMain.CMD(i).Caption + " (" + StrMain.Label1(i).Caption + ") " + " 動作試験"
entmode = 0
End Sub
Sub QQQ_Click (index As Integer)
Dim ccc As String
Dim MM As String
ccc = Chr$(13)
Select Case index
Case 0
Unload Me
Case 1
MM = MM + "StandardDev" + ccc + ccc
MM = MM + " <概要>指定データについて標準偏差を求める。" + ccc + ccc
MM = MM + " <引数>" + ccc
MM = MM + " <データファイル> <平均値及び標準偏差返却領域>" + ccc
MM = MM + " 標準偏差等は次のような文字列形式で返されます。" + ccc
MM = MM + " 12.3,44.5 平均値+'、'+標準偏差 " + ccc + ccc
MM = MM + " <返却値> 0:エラー" + ccc
MM = MM + " n:計算したサンプル数" + ccc + ccc
MM = MM + " <特記事項> サンプル数は500までとします。" + ccc
MM = MM + " サンプルが500を越えた場合は計算をやめて終了します。" + ccc
MM = MM + "" + ccc
MM = MM + " データファイルは行末が改行で終わるテキストファイルの形式で" + ccc
MM = MM + " 作成されていること。" + ccc + ccc
MsgBox MM
End Select
End Sub