home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
archive
/
exds100.lzh
/
SPACK.LZH
/
EXCEED6.FRM
< prev
next >
Wrap
Text File
|
1995-09-30
|
11KB
|
349 lines
VERSION 2.00
Begin Form STAT
BackColor = &H00C0C0C0&
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 5445
Icon = EXCEED6.FRX:0000
Left = 1425
LinkTopic = "Form1"
ScaleHeight = 4995
ScaleWidth = 7515
Top = 1080
Width = 7635
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "ブランク区切り"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 1
Left = 210
TabIndex = 10
Top = 1260
Width = 2025
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "カンマ区切り"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 0
Left = 210
TabIndex = 9
Top = 900
Value = -1 'True
Width = 2025
End
Begin CommandButton QQQ
Caption = "Help"
Height = 375
Index = 1
Left = 3660
TabIndex = 4
Top = 4320
Width = 1545
End
Begin CommandButton CMD
Caption = "実行"
Height = 495
Left = 2490
TabIndex = 3
Top = 4200
Width = 1095
End
Begin CommandButton QQQ
Caption = "Quit"
Height = 375
Index = 0
Left = 5340
TabIndex = 1
Top = 4320
Width = 1545
End
Begin TextBox Text1
BackColor = &H0000FFFF&
Height = 495
Index = 0
Left = 180
TabIndex = 0
Text = "22, 44,12, 8, 24.5 , 66, 75 , 0.1"
Top = 330
Width = 7065
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 5
Left = 1380
TabIndex = 18
Top = 2910
Width = 5835
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 = 4
Left = 180
TabIndex = 17
Top = 2970
Width = 1155
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 4
Left = 4800
TabIndex = 16
Top = 2400
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 = 3
Left = 3570
TabIndex = 15
Top = 2460
Width = 1155
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 3
Left = 4800
TabIndex = 14
Top = 1890
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 = 2
Left = 3570
TabIndex = 13
Top = 1950
Width = 1155
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 2
Left = 1380
TabIndex = 12
Top = 2400
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 = 180
TabIndex = 11
Top = 2460
Width = 1155
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 = 0
Left = 180
TabIndex = 8
Top = 1950
Width = 1155
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 1
Left = 1380
TabIndex = 7
Top = 1890
Width = 1545
End
Begin Label Label1
BackStyle = 0 '透明
Caption = "返却値 0:正常 -1:算術不能"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 345
Left = 2040
TabIndex = 6
Top = 3630
Width = 3855
End
Begin Label Label2
BackStyle = 0 '透明
Caption = "カンマまたはブランクで区切られたデータ列"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Index = 0
Left = 210
TabIndex = 5
Top = 120
Width = 3645
End
Begin Label Label3
BackColor = &H0000FF00&
BorderStyle = 1 '実線
Height = 465
Index = 0
Left = 1380
TabIndex = 2
Top = 3540
Width = 495
End
End
Option Explicit
Dim entmode As Integer
Sub CMD_Click ()
Dim s1 As String
Dim s2 As String * 1025
Dim s3 As String * 1025
Dim wk As String * 256
Dim rr, rt
Dim modes As Integer, i As Integer
modes = 1
s1 = TEXT1(0).Text
If Option1(0).Value Then 'カンマ
rt = Statistic%(s1, s3, s2, 1, modes)
'If modes = 1 Then
For i = 1 To 4 Step 1
rr = EXtract(1, i, s2, wk)
label3(i).Caption = wk
Next i
'End If
Else 'ブランク
rt = Statistic%(s1, s3, s2, 2, modes)
'If modes = 1 Then
For i = 1 To 4 Step 1
rr = EXtract(2, i, s2, wk)
label3(i).Caption = wk
Next i
'End If
End If
'
label3(0).Caption = Str$(rt)
'If modes = 2 Then
label3(5).Caption = s3
'End If
'
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 + "Statistic" + ccc + ccc
MM = MM + " <概要>数値データ列を解析して簡易集計値を取得する" + ccc + ccc
MM = MM + " <引数>" + ccc
MM = MM + " <集計対象文字列> <対合計比率文字列> <最大,最小,平均,合計値文字列>" + ccc
MM = MM + " <1:カンマ2:ブランク(区切り指定)> <1:固定>" + ccc + ccc
MM = MM + " <返却値> 0 :正常" + ccc
MM = MM + " -1:エラー" + ccc + ccc
MM = MM + " <特記事項> 受け取り文字列は 1025バイト以上を固定でとって下さい" + ccc
MM = MM + " Dim buf1 As String * 1025 " + ccc
MM = MM + " Dim buf2 As String * 1025" + ccc
MM = MM + "" + ccc
MM = MM + " カンマ指定でカンマがない・ブランク指定なのにカンマが入っている" + ccc
MM = MM + " カンマ指定でカンマが入っていないなどの文字列では返却値は" + ccc
MM = MM + " 0を返してしまいます、予めデータの妥当性は確認して" + ccc
MM = MM + " からお使い下さい。次期バージョンではチェックを強化する予定です。" + ccc + ccc
MM = MM + " <返却例> 第3引数に戻されるデータは区切り指定した記号を使って " + ccc
MM = MM + " 最大値、最小値、平均値、合計値 の文字列でわたります。" + ccc
MM = MM + " 第2引数に戻される文字列は合計値に対する各要素の比率(%)を" + ccc
MM = MM + " 区切り指定の記号を使って文字列で返却されます。返却要素は" + ccc
MM = MM + " 対象要素の並び順になります。" + ccc + ccc
MM = MM + " ※システムではカレントディレクトリにstatis.txtファイルを出力しています。" + ccc
MM = MM + " 不要な場合は消して下さい。"
MsgBox MM
End Select
End Sub