home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
archive
/
exds100.lzh
/
SPACK.LZH
/
EXCEEDV4.FRM
< prev
next >
Wrap
Text File
|
1995-09-30
|
15KB
|
433 lines
VERSION 2.00
Begin Form Dext
BackColor = &H00C0C0C0&
Caption = "ファイル列で結合 動作試験 Ver 1.00 "
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 4335
Icon = EXCEEDV4.FRX:0000
Left = 1095
LinkTopic = "Form2"
ScaleHeight = 3885
ScaleWidth = 6990
Top = 1170
Width = 7110
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 = 1950
TabIndex = 17
Text = "1"
Top = 1200
Width = 855
End
Begin OptionButton OPT
BackColor = &H00C0C0C0&
Caption = "タブ"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 3
Left = 1890
TabIndex = 16
Top = 2430
Width = 1455
End
Begin OptionButton OPT
BackColor = &H00C0C0C0&
Caption = "ブランク"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 2
Left = 1890
TabIndex = 15
Top = 2100
Width = 1455
End
Begin OptionButton OPT
BackColor = &H00C0C0C0&
Caption = "カンマ"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 1
Left = 1890
TabIndex = 14
Top = 1770
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 = 3360
TabIndex = 12
Top = 3120
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 = 2370
TabIndex = 10
Top = 3120
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 = 690
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 = 690
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 = "data8.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 = 5400
TabIndex = 2
Top = 3120
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 = 4380
TabIndex = 0
Top = 3120
Width = 1035
End
Begin Label Label2
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "CUT指定位置"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 3
Left = 270
TabIndex = 19
Top = 1260
Width = 1575
End
Begin Label Label5
Alignment = 1 '右揃え
BackStyle = 0 '透明
Caption = "(カラム位置)"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 690
TabIndex = 18
Top = 1500
Width = 1095
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 = 900
TabIndex = 13
Top = 1860
Width = 825
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 = 240
TabIndex = 11
Top = 2880
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 = 3990
TabIndex = 7
Top = 1440
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 = 720
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 = 1350
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 oSet As Integer
Dim dam As String
Dim t
Dim ccc As String
ccc = Chr$(13)
sFile = text2(0).Text
fFile = text2(2).Text
dam = text2(3).Text
Select Case INDEX
Case 0 '実行
If Len(Trim$(dam)) <= 0 Then
MsgBox "CUT位置が指定されていません.", 48, "設定エラー"
Exit Sub
End If
oSet = Val(Trim$(dam))
If Len(Trim$(sFile)) > 0 Then
If Len(Trim$(fFile)) > 0 Then
screen.MousePointer = 11
ret = Dextract%(sFile, fFile, oSet, DELM)
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 + "<機能概要> Dextract" + ccc + ccc
dam = dam + " テキストファイルの指定列のデータを削除し、その削除(クリップ)されたデータを" + ccc
dam = dam + " ファイルに出力します。" + ccc
dam = dam + " 元ファイルの内容は削除後の状態に修正されてしまいます。" + ccc
dam = dam + " 指定列が列数を越えている場合はクリップデータがない状態で作成されます。" + ccc + ccc
dam = dam + "<VBでの呼び出し方法>" + ccc + ccc
dam = dam + " ①定義方法はVBプログラムソースのEXCEEDF.BASを参照して下さい。" + ccc
dam = dam + " ②引数について" + ccc + ccc
dam = dam + " Dextract%( P1 , P2 , P3 , P4 )" + ccc
dam = dam + " P1:対象ファイル名称" + ccc
dam = dam + " P2:cutデータの収納のファイル名称(新規に作成されます。)" + ccc
dam = dam + " P3:cutするカラム位置を指定します。(カラム番号は1オリジン)" + ccc
dam = dam + " P4:1,カンマ 2,ブランク 3,タブ を指定します。" + ccc + ccc
dam = dam + "<返却値> 0:エラー 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)cut結果のレコード数が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 = 1
top = 200
left = 200
End Sub
Sub OPT_Click (INDEX As Integer)
If OPT(INDEX).Value Then
DELM = INDEX
End If
End Sub