home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
archive
/
exds100.lzh
/
SPACK.LZH
/
EXCEEDV6.FRM
< prev
next >
Wrap
Text File
|
1995-09-30
|
18KB
|
528 lines
VERSION 2.00
Begin Form Scop
BackColor = &H00C0C0C0&
Caption = "ファイル列で結合 動作試験 Ver 1.00 "
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 4650
Icon = EXCEEDV6.FRX:0000
Left = 4695
LinkTopic = "Form2"
ScaleHeight = 4200
ScaleWidth = 7020
Top = 7275
Width = 7140
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 = 5
Left = 4740
TabIndex = 22
Text = "0"
Top = 1740
Width = 855
End
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 = 4
Left = 1920
TabIndex = 20
Text = "0"
Top = 1740
Width = 855
End
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 = 1
Left = 4740
TabIndex = 18
Text = "0"
Top = 1230
Width = 855
End
Begin OptionButton OPT
BackColor = &H00C0C0C0&
Caption = "PASSTHRU"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 1
Left = 1920
TabIndex = 17
Top = 2670
Width = 1455
End
Begin OptionButton OPT
BackColor = &H00C0C0C0&
Caption = "WITHIN"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 0
Left = 1920
TabIndex = 16
Top = 2340
Value = -1 'True
Width = 1455
End
Begin CommandButton command1
Caption = "解説"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 525
Index = 6
Left = 3330
TabIndex = 14
Top = 3450
Width = 1035
End
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 = 3
Left = 1920
TabIndex = 11
Text = "0"
Top = 1230
Width = 855
End
Begin CommandButton command1
Caption = "制限"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 525
Index = 5
Left = 2340
TabIndex = 10
Top = 3450
Width = 1005
End
Begin CommandButton command1
Caption = "閲覧"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 465
Index = 4
Left = 5700
TabIndex = 9
Top = 720
Width = 855
End
Begin CommandButton command1
Caption = "閲覧"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 465
Index = 2
Left = 5700
TabIndex = 8
Top = 150
Width = 855
End
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 = 2
Left = 1920
TabIndex = 5
Text = "out.txt"
Top = 720
Width = 3705
End
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 = 1920
TabIndex = 3
Text = "data10.txt"
Top = 180
Width = 3705
End
Begin CommandButton command1
Caption = "終了"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 525
Index = 1
Left = 5370
TabIndex = 2
Top = 3450
Width = 975
End
Begin CommandButton command1
Caption = "実行"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 525
Index = 0
Left = 4350
TabIndex = 0
Top = 3450
Width = 1035
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "終了バイト位置"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 6
Left = 3090
TabIndex = 23
Top = 1800
Width = 1575
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "終了レコード"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 5
Left = 270
TabIndex = 21
Top = 1800
Width = 1575
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "開始バイト位置"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 1
Left = 3090
TabIndex = 19
Top = 1290
Width = 1575
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "オプション"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 4
Left = 630
TabIndex = 15
Top = 2490
Width = 1125
End
Begin Label Label4
BackStyle = 0 '透明
BorderStyle = 1 '実線
Caption = "黄色のエリアにはファイル名などをもれなく設定して下さい"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 10.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000FF&
Height = 735
Left = 210
TabIndex = 13
Top = 3210
Width = 1995
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "開始レコード"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 3
Left = 270
TabIndex = 12
Top = 1290
Width = 1575
End
Begin Label Label3
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "返却値"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF0000&
Height = 345
Left = 3990
TabIndex = 7
Top = 2550
Width = 855
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "出力ファイル"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 2
Left = 300
TabIndex = 6
Top = 780
Width = 1575
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 = 0
Left = 240
TabIndex = 4
Top = 240
Width = 1635
End
Begin Label Label1
BackColor = &H0000FF00&
BorderStyle = 1 '実線
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 495
Left = 4890
TabIndex = 1
Top = 2460
Width = 705
End
End
Option Explicit
Dim DELM As Integer
Sub Command1_Click (Index As Integer)
Dim ret
Dim sFile As String
Dim fFile As String
Dim dam As String
Dim dam1 As String
Dim dam2 As String
Dim dam3 As String
Dim dam4 As String
Dim t
Dim x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer
Dim ccc As String
ccc = Chr$(13)
sFile = text2(0).Text
fFile = text2(2).Text
dam1 = text2(3).Text
dam2 = text2(1).Text
dam3 = text2(4).Text
dam4 = text2(5).Text
Select Case Index
Case 0 '実行
y1 = Val(Trim$(dam1)) 'start record
y2 = Val(Trim$(dam3)) 'end record
x1 = Val(Trim$(dam2)) 'start byte
x2 = Val(Trim$(dam4)) 'end byte
If x1 < x2 And y1 < y2 Then
If Len(Trim$(sFile)) > 0 Then
If Len(Trim$(fFile)) > 0 Then
screen.MousePointer = 11
If OPT(0).Value Then
ret = ScopeFiles%(sFile, fFile, y1, x1, y2, x2, 1)
Else
ret = ScopeFiles%(sFile, fFile, y1, x1, y2, x2, 0)
End If
Label1.Caption = Str$(ret)
screen.MousePointer = 1
If ret > 0 Then
command1(0).Tag = text2(2).Text
Viewer.Show 1
Else
MsgBox "参照できませんでした"
End If
screen.MousePointer = 1
Exit Sub
End If
End If
MsgBox "ファイル名が指定されていません.", 48, "設定エラー"
Exit Sub
Else
MsgBox "開始終了の関係に矛盾があります", 48, "設定エラー"
End If
Case 1 '終了
Unload Me
Case 2 '閲覧
t = Shell("notepad.exe " + sFile, 1)
Case 4 '閲覧
t = Shell("notepad.exe " + fFile, 1)
Case 6 '解説
dam = ""
dam = dam + "<機能概要> ScopeFiles" + ccc + ccc
dam = dam + " テキストファイルの任意の部分をBOX範囲で指定して" + ccc
dam = dam + " 取り出した部分をファイルに出力します。" + ccc
dam = dam + " " + ccc
dam = dam + "<VBでの呼び出し方法>" + ccc + ccc
dam = dam + " ①定義方法はVBプログラムソースのEXCEEDF.BASを参照して下さい。" + ccc
dam = dam + " ②引数について" + ccc + ccc
dam = dam + " ScopeFiles%( P1 , P2 , P3 , P4 )" + ccc
dam = dam + " P1:参照元ファイル名称" + ccc
dam = dam + " P2:参照結果のファイル名称(新規に作成されます。)" + ccc
dam = dam + " P3:開始レコード番号(0オリジン)" + ccc
dam = dam + " P4:開始バイト位置(0オリジン)" + ccc
dam = dam + " P5:終了レコード番号(0オリジン)" + ccc
dam = dam + " P6:終了バイト位置(0オリジン)" + ccc
dam = dam + " P7:0,PASSTHRU 1,WITHIN" + ccc
dam = dam + " 2バイト文字の2バイト目がちょうど開始バイト位置になっている場合" + ccc
dam = dam + " または第1バイト目が終了バイトになっている場合、その文字を含めるか" + ccc
dam = dam + " 否かを指定するオプションです。" + ccc
dam = dam + " PASSTHRUの場合は含まれます。" + ccc + ccc
dam = dam + "<返却値> 0:エラー n:正常" + ccc + ccc
dam = dam + "" + ccc
dam = dam + ccc
dam = dam + " メールはLDI04643へどうぞ" + ccc
dam = dam + " (C) EXCEED CORP. 1995 "
MsgBox dam, 64, version
Case 5 '制限
dam = ""
dam = dam + "<制限事項>" + ccc + ccc
dam = dam + " (1)ファイル1には1レコード以上のデータを持つこと" + ccc
dam = dam + " (2)結果ファイルのレコード長が最大1024を越えないこと" + ccc
dam = dam + " (3)結果ファイルのレコード数が32767を越えないこと" + ccc
dam = dam + " (4)ファイル1はテキスト形式であり1レコードの区切りが改行であること" + ccc
dam = dam + " (5)ファイル1と出力ファイル名は異なっていなければなりません。" + ccc
dam = dam + "以上の点を制限として考えておりますが、何か問題がありましたらメールにてご連絡下さい" + ccc
dam = dam + ccc
dam = dam + " メールはLDI04643へどうぞ" + ccc
dam = dam + " (C) EXCEED CORP. 1995 "
MsgBox dam, 64, version
End Select
End Sub
Sub Form_Load ()
Dim i
i = FileMain.CMD(0).Tag
Caption = FileMain.CMD(i).Caption + " (" + FileMain.Label1(i).Caption + ")"
DELM = 0
top = 200
left = 200
End Sub
Sub OPT_Click (Index As Integer)
If OPT(Index).Value Then
DELM = Index
End If
End Sub