home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
archive
/
exds100.lzh
/
SPACK.LZH
/
EXCEEDV7.FRM
< prev
next >
Wrap
Text File
|
1995-09-30
|
13KB
|
375 lines
VERSION 2.00
Begin Form Edits
BackColor = &H00C0C0C0&
Caption = "ファイル列で結合 動作試験 Ver 1.00 "
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 4305
Icon = EXCEEDV7.FRX:0000
Left = 2100
LinkTopic = "Form2"
ScaleHeight = 3855
ScaleWidth = 6855
Top = 6195
Width = 6975
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 = 15
Text = "<置換>"
Top = 1740
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 = 6
Left = 3420
TabIndex = 14
Top = 3030
Width = 1035
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 = 2430
TabIndex = 12
Top = 3030
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 = 11
Top = 660
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 = 10
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 = 7
Text = "out.txt"
Top = 660
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 = 1
Left = 1920
TabIndex = 5
Text = "99"
Top = 1260
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 = "data11.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 = 5460
TabIndex = 2
Top = 3030
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 = 4440
TabIndex = 0
Top = 3030
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 = 3
Left = 300
TabIndex = 16
Top = 1800
Width = 1575
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 = 300
TabIndex = 13
Top = 2790
Width = 1995
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 = 4020
TabIndex = 9
Top = 2400
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 = 8
Top = 690
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 = 300
TabIndex = 6
Top = 1320
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 = 4920
TabIndex = 1
Top = 2310
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 expr1 As String
Dim expr2 As String
Dim dam As String
Dim t
Dim ccc As String
ccc = Chr$(13)
sFile = text2(0).Text
fFile = text2(2).Text
expr1 = text2(1).Text
expr2 = text2(3).Text
Select Case INDEX
Case 0 '実行
If Len(Trim$(sFile)) > 0 Then
If Len(Trim$(fFile)) > 0 Then
screen.MousePointer = 11
ret = EditFiles%(sFile, fFile, expr1, expr2)
Label1.Caption = Str$(ret)
screen.MousePointer = 1
Exit Sub
End If
End If
MsgBox "ファイル名が指定されていません.", 48, "設定エラー"
Exit Sub
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 + "<機能概要> EditFiles" + ccc
dam = dam + " テキストファイルを検索して検索文字列を置換文字列で置き換えます。" + ccc
dam = dam + " 結果はファイルに出力されます。" + ccc
dam = dam + " " + ccc
dam = dam + " " + ccc
dam = dam + "<VBでの呼び出し方法>" + ccc + ccc
dam = dam + " ①定義方法はVBプログラムソースのEXCEEDF.BASを参照して下さい。" + ccc
dam = dam + " ②引数について" + ccc
dam = dam + " EditFiles%( P1 , P2 , P3 )" + ccc
dam = dam + " P1:編集ファイル名称" + ccc
dam = dam + " P2:編集結果のファイル名称(新規に作成されます。)" + ccc
dam = dam + " P3:検索文字列" + ccc
dam = dam + " P4:置換文字列" + ccc + ccc
dam = dam + "<返却値> -1:エラー n:置換数" + ccc + 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)ファイル1と編集結果のレコード長が最大1024を越えないこと" + ccc
dam = dam + " (3)編集結果のレコード数が32767を越えないこと" + ccc
dam = dam + " (4)ファイル1はテキスト形式であり1レコードの区切りが改行であること" + ccc
dam = dam + " (5)ファイル1、出力ファイル名は異なっていること" + ccc + 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