home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
archive
/
exds100.lzh
/
SPACK.LZH
/
EXCEEDV5.FRM
< prev
next >
Wrap
Text File
|
1995-09-30
|
12KB
|
365 lines
VERSION 2.00
Begin Form Unix
BackColor = &H00C0C0C0&
Caption = "ファイル列で結合 動作試験 Ver 1.00 "
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 3510
Icon = EXCEEDV5.FRX:0000
Left = 5610
LinkTopic = "Form2"
ScaleHeight = 3060
ScaleWidth = 6975
Top = 1785
Width = 7095
Begin OptionButton OPT
BackColor = &H00C0C0C0&
Caption = "UNIX -> DOS"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Index = 0
Left = 1890
TabIndex = 14
Top = 1230
Value = -1 'True
Width = 1935
End
Begin OptionButton OPT
BackColor = &H00C0C0C0&
Caption = "DOS -> UNIX"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS ゴシック"
FontSize = 12.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 315
Index = 1
Left = 1890
TabIndex = 13
Top = 1620
Width = 2085
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 = 3270
TabIndex = 12
Top = 2310
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 = 2280
TabIndex = 10
Top = 2310
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 = "data9.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 = 5310
TabIndex = 2
Top = 2310
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 = 4290
TabIndex = 0
Top = 2310
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 = 4
Left = 600
TabIndex = 15
Top = 1410
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 = 150
TabIndex = 11
Top = 2070
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 = 7
Top = 1350
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 = 4920
TabIndex = 1
Top = 1260
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 t
Dim ccc As String
ccc = Chr$(13)
sFile = text2(0).Text
fFile = text2(2).Text
Select Case INDEX
Case 0 '実行
If Len(Trim$(sFile)) > 0 Then
If Len(Trim$(fFile)) > 0 Then
screen.MousePointer = 11
If OPT(0).Value Then
ret = UnixDos%(sFile, fFile, 1)
Else
ret = UnixDos%(sFile, fFile, 0)
End If
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 + "<機能概要> UnixDos" + ccc + ccc
dam = dam + " ファイル単位で、UNIX<->DOSの変換を行います" + ccc
dam = dam + " " + ccc
dam = dam + "<VBでの呼び出し方法>" + ccc + ccc
dam = dam + " ①定義方法はVBプログラムソースのEXCEEDF.BASを参照して下さい。" + ccc
dam = dam + " ②引数について" + ccc
dam = dam + " UnixDos%( P1 , P2 , P3 )" + ccc
dam = dam + " P1:変換元ファイル名称" + ccc
dam = dam + " P2:変換後ファイル名称" + ccc
dam = dam + " P3:変換オプション" + ccc
dam = dam + " 1 を変換元ファイルをUNIX形式としてDOSファイルを生成します。" + ccc
dam = dam + " 0 を変換元ファイルをDOS形式としてUNIXファイルを生成します。" + 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レコード以上のデータがあること。" + ccc
dam = dam + " (2)テキストファイルを入力形式とします。" + ccc
dam = dam + " (3)レコード長は1024を越えないこと" + ccc
dam = dam + " (4)ファイル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
Sub OPT_Click (INDEX As Integer)
If OPT(1).Value Then
command1(4).Enabled = False
Else
command1(4).Enabled = True
End If
End Sub