home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS022.DSK
/
AMIFLTR.SMM
< prev
next >
Wrap
INI File
|
1994-08-01
|
30KB
|
2,180 lines
[ver]
4
[sty]
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[recfile]
1
1
3
8
0
0
[prn]
HP LaserJet IIISi
[port]
LPT2.OS2
[lang]
1
[fldnames]
Field1
Field2
Field3
Field4
Field5
Field6
Field7
Field8
[desc]
Temporary file created during export operation.
775777098
85
774229827
2027
9
0
0
0
0
1
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[tag]
Body Text
2
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
216
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
2
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Outline7
3
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
1296
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
7
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Outline6
4
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
1080
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
6
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Outline5
5
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
864
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
5
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Outline4
6
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
648
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
4
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Outline3
7
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
432
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
3
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Function
8
[fnt]
Times New Roman
320
16711680
49152
[algn]
1
1
0
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
1
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Comments
9
[fnt]
Courier New
200
255
32768
[algn]
1
1
0
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
0
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Comments
0
0
[tag]
Defines
11
[fnt]
Courier New
200
16711680
32768
[algn]
1
1
0
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
0
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Outline8
12
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
1512
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
8
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[tag]
Outline9
0
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
1728
0
0
[spc]
33
0
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
0
1
1
144
144
1
[spec]
0
9
0
1
1
0
16
0
0
[nfmt]
280
1
2
.
,
$
Body Text
0
0
[lay]
Standard
513
[rght]
15840
12240
1
360
1440
1
1440
360
0
1
0
1
0
2
1
360
11880
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
12240
1440
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1440
12240
1
1440
72
1
792
1440
0
1
0
1
1
0
1
1440
10800
2
2
4680
3
9360
[txt]
>
[frght]
[lyfrm]
1
13248
0
14400
12240
15840
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
15840
12240
1
1440
792
1
14472
1440
0
1
0
1
1
0
1
1440
10800
2
2
4680
3
9360
[txt]
>
[elay]
[l1]
0
[edoc]
@Defines@<:#240,11520><:X3,-28672;OutlineMode()><:X~3,-28672;OutlineMode()>'International Define Area
@Defines@<:#240,11520>DEFINE PREVIEW_ERROR "Preview not available for this filter."
@Defines@<:#240,11520>DEFINE EXISTS_ERROR " already exists. Do you want to overwrite it?"
@Defines@<:#240,11520>DEFINE ERROR1 "Error opening user file."
@Defines@<:#240,11520>DEFINE ERROR2 "Error during read."
@Defines@<:#240,11520>DEFINE ERROR3 "Error opening conversion file."
@Defines@<:#240,11520>DEFINE ERROR4 "Error during write."
@Defines@<:#240,11520>DEFINE ERROR5 "Invalid data in conversion."
@Defines@<:#240,11520>DEFINE ERROR6 "Error opening exception file."
@Defines@<:#240,11520>DEFINE ERROR7 "Error writing exception file."
@Defines@<:#240,11520>DEFINE ERROR8 "Error obtaining memory."
@Defines@<:#240,11520>DEFINE ERROR9 "Error invalid document."
@Defines@<:#240,11520>DEFINE ERROR10 "Error out of space on output."
@Defines@<:#240,11520>DEFINE ERROR11 "Conversion document too large for target."
@Defines@<:#240,11520>DEFINE ERROR12 "Warning - Possible error in conversion."
@Defines@<:#240,11520>DEFINE ERROR13 "Conversion canceled by the user."
@Defines@<:#240,11520>DEFINE ERROR14 "Incorrect option format."
@Defines@<:#240,11520>DEFINE ERROR15 "Unknown error."
@Defines@<:#240,11520>DEFINE ERROR16 "Fatal internal error."
@Defines@<:#240,11520>DEFINE ERROR17 "Error during seek."
@Defines@<:#240,11520>DEFINE ERROR18 "Error loading "
@Defines@<:#240,11520>DEFINE descrip "Temporary file created during export operation."
@Defines@<:#240,11520>'End of International Define Area
@Defines@<:#240,11520>DECLARE Error(Stat)
@Defines@<:#240,11520>Declare AddBackslash(fn)
@Defines@<:#240,11520>Declare AddPeriod(fn)
@Defines@<:#240,11520>Declare FileNameFromPath(pn)
@Defines@<:#240,11520>Declare ChopExtension(pn)
@Defines@<:#240,11520>Define lock(hWnd) DllCall("user,lockwindowupdate,hh",%1)
@Defines@<:#240,11520>Define GetActiveWindow() DllCall("user,GetActiveWindow,H")
@Defines@<:#240,11520>
@Function@<:#384,11520>FUNCTION Main(IEInfo)
<:#288,11520>PreviewSwitch = strfield$(IEInfo,6,",")
<:#288,11520>If PreviewSwitch = "P"
@Outline3@<:#288,11520>Message(PREVIEW_ERROR,"Lotus Ami Pro")
@Outline3@<:#288,11520>Return (-1)
<:#288,11520>EndIf
<:#288,11520>IgnoreKeyboard(2)
<:#288,11520>HourGlass(1)
<:#288,11520>filtertype=strfield$(IEInfo,2,",")
<:#288,11520>filterinfo=GetProfileString$("Filters",filtertype,"AMIPRO2.INI")
<:#288,11520>IF filterinfo="" THEN
@Outline3@<:#288,11520>WriteProfileString("Filters","WordPerfect 6.0","w4w48f.dll,0,w4w48t.dll,0","AMIPRO2.INI")
@Outline3@<:#288,11520>WriteProfileString("Filters","Word for Windows 6.0","w4w49f.dll,0,w4w44t.dll,1","AMIPRO2.INI")
@Outline3@<:#288,11520>WriteProfileString("Filters","Q&A Write","w4w23f.dll,0,w4w23t.dll,0","AMIPRO2.INI")
@Outline3@<:#288,11520>WriteProfileString("Filters","XyWrite III ","w4w17f.dll,0,w4w17t.dll,0","AMIPRO2.INI")
@Outline3@<:#288,11520>WriteProfileString("Filters","XyWrite III Plus","w4w17f.dll,1,w4w17t.dll,1","AMIPRO2.INI")
@Outline3@<:#288,11520>WriteProfileString("Filters","XyWrite IV","w4w17f.dll,3,w4w17t.dll,3","AMIPRO2.INI")
@Outline3@<:#288,11520>WriteProfileString("Filters","Ami Pro","w4w33f.dll,1,w4w33t.dll,1","AMIPRO2.INI")
@Outline3@<:#288,11520>filterinfo=GetProfileString$("Filters",filtertype,"AMIPRO2.INI")
<:#288,11520>ENDIF
<:#288,11520>DefStr CallBack;
<:#288,11520>IEStatus=strfield$(IEInfo,3,",")
<:#288,11520>TempFileDir=DosGetEnv$("Temp")
<:#288,11520>If TempFileDir = ""
@Outline3@<:#288,11520>TempFileDir=GetWindowsDirectory$()
<:#288,11520>EndIf
<:#288,11520>AddBackslash(&TempFileDir)
<:#336,11520><:f280,2Times New Roman,0,0,255>IF IEStatus="I" THEN ' Begin Import<:f>
@Outline3@<:#288,11520>ccfstatus=strfield$(IEInfo,4,",")*128
@Outline3@<:#288,11520>IF strfield$(IEInfo,5,",")="I" THEN
@Outline4@<:#288,11520>insertstatus=8
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>fromdll=strfield$(filterinfo,1,",")
@Outline3@<:#288,11520>fromver=strfield$(filterinfo,2,",")
@Outline3@<:#288,11520>Id = DllLoadLib(fromdll,"w4wf","HCCCCJ")
@Outline3@<:#288,11520>IF Id=0 THEN
@Outline4@<:#288,11520>dispvar=strcat$(ERROR18,fromdll)
@Outline4@<:#288,11520>Message(dispvar, "Lotus Ami Pro")
@Outline4@<:#288,11520>goto CleanUpAndExit
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>OriginalFile = strfield$(IEInfo,1,",")
@Outline3@<:#288,11520>TempFileBase = FileNameFromPath(OriginalFile)
@Outline3@<:#288,11520>AddPeriod(&TempFileBase)
@Outline3@<:#288,11520>TempFileBase = Left$(TempFileBase,strchr(1,TempFileBase,"."))
@Outline3@<:#288,11520>TempFile = Right$(TempFileBase,8)
@Outline3@<:#288,11520>TempFile = strcat$(TempFileDir,"~",TempFile,"tmp")
@Outline3@<:#288,11520>Except = ""
@Outline3@<:#288,11520>Stat = DllCall("{fromdll},w4wf,HCCCCJ",OriginalFile,TempFile,fromver,Except,CallBack)
@Outline3@<:#288,11520>DllFreeLib(Id)
@Outline3@<:#288,11520>IF Stat<<<;>0 THEN
@Outline4@<:#288,11520>If FromDLL="w4w49f.dll" 'Word for Windows 6.0 filter chosen but failed
@Outline5@<:#288,11520>FileOpen(OriginalFile, 16+ccfStatus+insertStatus, "Word for Windows 2.0")
@Outline4@<:#288,11520>ElseIf FromDll="w4w48f.dll" 'WordPerfect 6 fitler chosen but failed
@Outline5@<:#288,11520>FileOpen(OriginalFile, 16+ccfStatus+insertStatus, "WordPerfect 5.x")
@Outline4@<:#288,11520>Else
@Outline5@<:#288,11520>Error(Stat)
@Outline4@<:#288,11520>EndIf
@Outline4@<:#288,11520>goto CleanUpAndExit
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>IF Id=0 THEN
@Outline4@<:#288,11520>dispvar=strcat$(ERROR18,fromdll)
@Outline4@<:#288,11520>Message(dispvar, "Lotus Ami Pro")
@Outline4@<:#288,11520>goto CleanUpAndExit
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>
@Outline3@<:#288,11520>'Code for creating FinalFile.
@Outline3@<:#288,11520>FinalFile = FileNameFromPath(TempFileBase)
@Outline3@<:#288,11520>AddPeriod(&FinalFile)
@Outline3@<:#288,11520>FinalFile = strcat$(Left$(FinalFile,strchr(1,FinalFile,".")),"SAM")
@Outline3@<:#288,11520>DocPath = GetDocPath$()
@Outline3@<:#288,11520>AddBackslash(&DocPath)
@Outline3@<:#288,11520>FinalFile = strcat$(DocPath,FinalFile)
@Outline3@<:#288,11520>
@Outline3@<:#288,11520>result = fopen(FinalFile, "r")
@Outline3@<:#288,11520>While (result != 0)
@Outline4@<:#288,11520>fclose(result)
@Outline4@<:#288,11520>ExistMessage = strcat$(UCASE$(FinalFile),EXISTS_ERROR)
@Outline4@<:#288,11520>FillEdit(1000,ExistMessage)
@Outline4@<:#288,11520>decision = DialogBox(".","FileExists")
@Outline4@<:#288,11520>If decision = 7
@Outline5@<:#288,11520>GetNameResult = DialogBox(".","GetName")
@Outline5@<:#288,11520>If (GetNameResult = 0) 'If Canceled
@Outline6@<:#288,11520>Goto CleanUpAndExit
@Outline5@<:#288,11520>else
@Outline6@<:#288,11520>NewName = GetDialogField$(8000)
@Outline6@<:#288,11520>ChopExtension(&NewName)
@Outline6@<:#288,11520>NewName = strcat$(NewName, ".SAM")
@Outline6@<:#288,11520>If (InStr(1,NewName,"\")=0) 'If they just typed the filename
@Outline7@<:#288,11520>FinalFile = strcat$(DocPath, NewName)
@Outline7@<:#288,11520>result = fopen(FinalFile,"r")
@Outline6@<:#288,11520>else 'Otherwise they typed a path
@Outline7@<:#288,11520>FinalFile = NewName
@Outline7@<:#288,11520>result = fopen(FinalFile,"r")
@Outline6@<:#288,11520>endif
@Outline5@<:#288,11520>endif
@Outline4@<:#288,11520>else
@Outline5@<:#288,11520>result = 0
@Outline4@<:#288,11520>endif
@Outline3@<:#288,11520>Wend
@Outline3@<:#288,11520>
@Outline3@<:#288,11520>Id = DllLoadLib("w4w33t.dll","w4wt","HCCCCJ")
@Outline3@<:#288,11520>
@Outline3@<:#288,11520>Version = "1"
@Outline3@<:#288,11520>Stat = DllCall("w4w33t.dll,w4wt,HCCCCJ",TempFile,FinalFile,Version,Except,CallBack)
@Outline3@<:#288,11520>DllFreeLib(Id)
@Outline3@<:#288,11520>IF Stat<<<;>0 THEN
@Outline4@<:#288,11520>Error(Stat)
@Outline4@<:#288,11520>Goto CleanUpAndExit
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>HourGlass(0)
@Outline3@<:#288,11520>FileOpen(FinalFile,1+ccfstatus+insertstatus,"")
@Outline3@<:#288,11520>
@Outline3@<:#288,11520>CleanUpAndExit:
@Outline3@<:#288,11520>'DOSDelFile(FinalFile)
<:f280,2Times New Roman,0,0,255>ELSE 'Begin export<:f>
@Outline3@'If ((GetOpenFileName$() = "") and (FileChanged(0,0) = 0))
@Outline4@'Exit Function
@Outline3@'EndIf
@Outline3@amifiltinfo=GetProfileString$("Filters","Ami Pro","AMIPRO2.INI")
@Outline3@FinalFile=strfield$(IEInfo,1,",")
@Outline3@'Check if existing file
@Outline3@result = fopen(FinalFile, "r")
@Outline3@if (result != 0) 'File already exists
@Outline4@ExistMessage = strcat$(UCASE$(FinalFile),EXISTS_ERROR)
@Outline4@FillEdit(1000,ExistMessage)
@Outline4@decision = DialogBox(".","FileExists")
@Outline4@If decision = 7 'No
@Outline5@Exit Function
@Outline4@endif
@Outline3@endif
@Outline3@<:#288,11520>TempFileBase = FileNameFromPath(FinalFile)
@Outline3@<:#288,11520>ChopExtension(&TempFileBase)
@Outline3@<:#288,11520>AddPeriod(&TempFileBase)
@Outline3@<:#288,11520>result = FileChanged(0,0)
@Outline3@If ((result != 0) or (GetOpenFileName$() = ""))
@Outline4@<:#288,11520>'Code for creating SamFile.
@Outline4@<:#288,11520>SamFile = FileNameFromPath(TempFileBase)
@Outline4@<:#288,11520>AddPeriod(&SamFile)
@Outline4@<:#288,11520>SamFile = strcat$(Left$(SamFile,strchr(1,SamFile,".")),"SAM")
@Outline4@<:#288,11520>DocPath = GetDocPath$()
@Outline4@<:#288,11520>AddBackslash(&DocPath)
@Outline4@<:#288,11520>SamFile = strcat$(DocPath,SamFile)
@Outline4@<:f240,2Times New Roman,255,0,0><:f><:f240,2Times New Roman,255,0,0><:f>result = fopen(SamFile, "r")
@Outline4@While (result != 0)
@Outline5@<:#288,11520>
@Outline5@<:#288,11520>fclose(result)
@Outline5@<:#288,11520>ExistMessage = strcat$(UCASE$(SamFile),EXISTS_ERROR)
@Outline5@<:#288,11520>FillEdit(1000,ExistMessage)
@Outline5@<:#288,11520>decision = DialogBox(".","FileExists")
@Outline5@<:#288,11520>If decision = 7 'No
@Outline6@<:#288,11520>GetNameResult = DialogBox(".","GetName")
@Outline6@<:#288,11520>If (GetNameResult = 0) 'If Canceled
@Outline7@<:#288,11520>Exit Function
@Outline6@<:#288,11520>else
@Outline7@<:#288,11520>NewName = GetDialogField$(8000)
@Outline7@<:#288,11520>ChopExtension(&NewName)
@Outline7@<:#288,11520>NewName = strcat$(NewName, ".SAM")
@Outline7@<:#288,11520>If (InStr(1,NewName,"\")=0) 'If they just typed the filename
@Outline8@<:#288,11520>SamFile = strcat$(DocPath, NewName)
@Outline8@<:#288,11520>result = fopen(SamFile,"r")
@Outline7@<:#288,11520>else 'Otherwise they typed a path
@Outline8@<:#288,11520>SamFile = NewName
@Outline8@<:#288,11520>result = fopen(SamFile,"r")
@Outline7@<:#288,11520>endif
@Outline6@<:#288,11520>endif
@Outline5@<:#288,11520>else
@Outline6@<:#288,11520>result = 0
@Outline5@<:#288,11520>endif
@Outline4@<:#288,11520>Wend
@Outline4@<:#288,11520>AnswerMsgBox(6)
@Outline4@result = SaveAs(SamFile, 32, "", "")
@Outline4@if (result != 1)
@Outline5@exit function
@Outline4@endif
@Outline3@else
@Outline4@<:#288,11520>SamFile = GetOpenFileName$()
@Outline3@<:#288,11520>endif
@Outline3@<:#288,11520>TempFileBase = Left$(TempFileBase,strchr(1,TempFileBase,"."))
@Outline3@<:#288,11520>fromdll=strfield$(amifiltinfo,1,",")
@Outline3@<:#288,11520>fromver=strfield$(amifiltinfo,2,",")
@Outline3@<:#288,11520>todll=strfield$(filterinfo,3,",")
@Outline3@<:#288,11520>tover=strfield$(filterinfo,4,",")
@Outline3@<:#288,11520>Id = DllLoadLib(fromdll,"w4wf","HCCCCJ")
@Outline3@<:#288,11520>IF Id=0 THEN
@Outline4@<:#288,11520>dispvar=strcat$(ERROR18,fromdll)
@Outline4@<:#288,11520>Message(dispvar, "Lotus Ami Pro")
@Outline4@<:#288,11520>goto CleanUpExport
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>TempFile = Right$(TempFileBase, 7)
@Outline3@<:#288,11520>AddPeriod(&TempFile)
@Outline3@<:#288,11520>TempFile = strcat$(TempFileDir,"~",TempFile,"TMP")
@Outline3@<:#288,11520>Except = ""
@Outline3@<:#288,11520>Stat = DllCall("{fromdll},w4wf,HCCCCJ",SamFile,TempFile,tover,Except,CallBack)
@Outline3@<:#288,11520>DllFreeLib(Id)
@Outline3@<:#288,11520>IF Stat<<<;>0 THEN
@Outline4@<:#288,11520>Error(Stat)
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>IF Id=0 THEN
@Outline4@<:#288,11520>dispvar=strcat$(ERROR18,fromdll)
@Outline4@<:#288,11520>Message(dispvar, "Ami Pro")
@Outline4@<:#288,11520>goto CleanUpExport
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>Id = DllLoadLib(todll,"w4wt","HCCCCJ")
@Outline3@<:#288,11520>Stat = DllCall("{todll},w4wt,HCCCCJ",TempFile,FinalFile,tover,Except,CallBack)
@Outline3@<:#288,11520>IF Stat<<<;>0 THEN
@Outline4@<:#288,11520>Error(Stat)
@Outline3@<:#288,11520>ENDIF
@Outline3@<:#288,11520>DllFreeLib(Id)
@Outline3@<:#288,11520>
@Outline3@<:#288,11520>CleanUpExport:
@Outline3@<:#288,11520>
@Outline3@<:#288,11520>'DOSDelFile(SamFile)
@Outline3@<:#288,11520>HourGlass(0)
<:#288,11520>ENDIF
@Function@<:#384,11520>END FUNCTION
@Function@<:#384,11520>
@Function@<:#384,11520>FUNCTION Error(Stat)
<:#288,11520>SWITCH Stat
@Outline3@<:#288,11520>CASE 1 Errornum=ERROR1
@Outline3@<:#288,11520>CASE 2 Errornum=ERROR2
@Outline3@<:#288,11520>CASE 3 Errornum=ERROR3
@Outline3@<:#288,11520>CASE 4 Errornum=ERROR4
@Outline3@<:#288,11520>CASE 5 Errornum=ERROR5
@Outline3@<:#288,11520>CASE 6 Errornum=ERROR6
@Outline3@<:#288,11520>CASE 7 Errornum=ERROR7
@Outline3@<:#288,11520>CASE 8 Errornum=ERROR8
@Outline3@<:#288,11520>CASE 9 Errornum=ERROR9
@Outline3@<:#288,11520>CASE 10 Errornum=ERROR10
@Outline3@<:#288,11520>CASE 11 Errornum=ERROR11
@Outline3@<:#288,11520>CASE 12 Errornum=ERROR12
@Outline3@<:#288,11520>CASE 13 Errornum=ERROR13
@Outline3@<:#288,11520>CASE 14 Errornum=ERROR14
@Outline3@<:#288,11520>CASE 15 Errornum=ERROR15
@Outline3@<:#288,11520>CASE 16 Errornum=ERROR16
@Outline3@<:#288,11520>CASE 17 Errornum=ERROR17
<:#288,11520>ENDSWITCH
<:#288,11520>Message(Errornum, "Lotus Ami Pro")
@Function@<:#384,11520>END FUNCTION
@Function@<:#384,11520>Function ChopExtension(pn)
<:#288,11520>sFile = (*pn)
<:#288,11520>lcv = len(sFile)
<:#288,11520>done = 0
<:#288,11520>while (done = 0)
@Outline3@<:#288,11520>ch = Mid$(sFile,lcv,1)
@Outline3@<:#288,11520>if ch="\"
@Outline4@<:#288,11520>done = 1
@Outline3@<:#288,11520>elseif ch="."
@Outline4@<:#288,11520>sFile = Left$(sFile, lcv - 1)
@Outline4@<:#288,11520>done = 1
@Outline3@<:#288,11520>elseif lcv = 1
@Outline4@<:#288,11520>done = 1
@Outline3@<:#288,11520>endif
@Outline3@<:#288,11520>lcv = lcv - 1
<:#288,11520>wend
<:#288,11520>*pn = sFile
@Function@<:#384,11520>End Function
@Function@<:#384,11520>Function AddBackslash(fn)
<:#288,11520>sFile = (*fn)
<:#288,11520>if Right$(sFile, 1) != "\"
@Outline3@<:#288,11520>sFile = strcat$(sFile, "\")
<:#288,11520>endif
<:#288,11520>*fn = sFile
@Function@<:#384,11520>End Function
@Function@<:#384,11520>Function AddPeriod(fn)
<:#288,11520>sFile = (*fn)
<:#288,11520>if Right$(sFile, 1) != "."
@Outline3@<:#288,11520>sFile = strcat$(sFile, ".")
<:#288,11520>endif
<:#288,11520>*fn = sFile
@Function@<:#384,11520>End Function
@Function@<:#384,11520>Function FileNameFromPath(pn)
<:#288,11520>bkslpos = 1
<:#288,11520>bkslpos = InStr(1,pn, "\")
<:#288,11520>While bkslpos <;> 0
@Outline3@<:#288,11520>bkslpos = InStr(1 ,pn, "\")
@Outline3@<:#288,11520>pn = Right$(pn, Len(pn) - bkslpos )
<:#288,11520>Wend
<:#288,11520>return pn
@Function@<:#384,11520>End Function
@Function@<:#384,11520>DIALOG GetName
<:#288,11520>-2134376448 4 45 97 120 59 "" "" "Lotus Ami Pro"
<:#576,11520>3 8 111 9 1000 1342177280 "static" "New name for Ami Pro document?" 0
<:#288,11520>3 20 111 12 8000 1350631552 "edit" "" 0
<:#288,11520>15 38 39 15 1 1342373889 "button" "&OK" 0
<:#288,11520>60 38 39 15 2 1342373888 "button" "&Cancel" 0
@Function@<:#384,11520>END DIALOG
@Function@<:#384,11520>DIALOG FileExists
<:#288,11520>-2134376448 3 30 73 240 59 "" "" "Lotus Ami Pro"
<:#576,11520>6 14 228 21 1000 1342177281 "static" "{Placeholder} already exists. Do you want to overwrite it?" 0
<:#288,11520>126 38 33 15 7 1342373889 "button" "&No" 0
<:#288,11520>81 38 33 15 6 1342373888 "button" "&Yes" 0
@Function@<:#384,11520>END DIALOG
>
[Embedded]
00022123
>
[macsum] 8
Main 0 1 30 31
Error 5274 1 2 247
ChopExtension 6659 1 5 269
AddBackslash 7021 1 2 287
AddPeriod 7142 1 2 294
FileNameFromPath 7260 1 2 301
GetName 7465 0 -1 310
FileExists 7738 0 -1 317
[macse]
14 Main
0 20 "{0}" 6 ","
13
8 2
6 2
7 "P"
18 0
11 00000142
0 3 "Preview not available for this filter." "Lotus Ami Pro"
5 -1
15
9
0 32 2
0 296 1
0 20 "{0}" 2 ","
13
8 3
0 286 "Filters" "{3}" "AMIPRO2.INI"
13
8 4
6 4
7 ""
18 0
11 00000831
0 287 "Filters" "WordPerfect 6.0" "w4w48f.dll,0,w4w48t.dll,0" "AMIPRO2.INI"
0 287 "Filters" "Word for Windows 6.0" "w4w49f.dll,0,w4w44t.dll,1" "AMIPRO2.INI"
0 287 "Filters" "Q&A Write" "w4w23f.dll,0,w4w23t.dll,0" "AMIPRO2.INI"
0 287 "Filters" "XyWrite III " "w4w17f.dll,0,w4w17t.dll,0" "AMIPRO2.INI"
0 287 "Filters" "XyWrite III Plus" "w4w17f.dll,1,w4w17t.dll,1" "AMIPRO2.INI"
0 287 "Filters" "XyWrite IV" "w4w17f.dll,3,w4w17t.dll,3" "AMIPRO2.INI"
0 287 "Filters" "Ami Pro" "w4w33f.dll,1,w4w33t.dll,1" "AMIPRO2.INI"
0 286 "Filters" "{3}" "AMIPRO2.INI"
13
8 4
0 20 "{0}" 3 ","
13
8 6
0 774 "Temp"
13
8 7
6 7
7 ""
18 0
11 00000928
0 1288
13
8 7
16 AddBackslash &7
6 6
7 "I"
18 0
11 00003059
0 20 "{0}" 4 ","
13
5 128
4 0
8 8
0 20 "{0}" 5 ","
13
7 "I"
18 0
11 00001076
5 8
8 9
0 20 "{4}" 1 ","
13
8 10
0 20 "{4}" 2 ","
13
8 11
0 297 "{10}" "w4wf" "HCCCCJ"
13
8 12
6 12
5 0
18 0
11 00001283
0 16 "Error loading " "{10}"
13
8 13
0 3 "{13}" "Lotus Ami Pro"
10 00003046
0 20 "{0}" 1 ","
13
8 14
16 FileNameFromPath "{14}"
13
8 15
16 AddPeriod &15
0 13 1 "{15}" "."
13
0 806 "{15}" [X]
13
8 15
0 807 "{15}" 8
13
8 16
0 16 "{7}" "~" "{16}" "tmp"
13
8 16
7 ""
8 17
0 284 "{10},w4wf,HCCCCJ" "{14}" "{16}" "{11}" "{17}" "{5}"
13
8 18
0 298 "{12}"
6 18
5 0
18 1
11 00001880
6 10
7 "w4w49f.dll"
18 0
11 00001732
5 16
6 8
3 0
6 9
3 0
2 102 1 "{14}" [X] "Word for Windows 2.0"
10 00001867
6 10
7 "w4w48f.dll"
18 0
11 00001850
5 16
6 8
3 0
6 9
3 0
2 102 1 "{14}" [X] "WordPerfect 5.x"
10 00001867
16 Error "{18}"
10 00003046
6 12
5 0
18 0
11 00001991
0 16 "Error loading " "{10}"
13
8 13
0 3 "{13}" "Lotus Ami Pro"
10 00003046
16 FileNameFromPath "{15}"
13
8 19
16 AddPeriod &19
0 13 1 "{19}" "."
13
0 806 "{19}" [X]
13
0 16 [X] "SAM"
13
8 19
0 268
13
8 20
16 AddBackslash &20
0 16 "{20}" "{19}"
13
8 19
0 259 "{19}" "r"
13
8 21
6 21
5 0
18 1
11 00002780
0 260 "{21}"
0 18 "{19}"
13
0 16 [X] " already exists. Do you want to overwrite it?"
13
8 22
0 31 1000 "{22}"
0 26 "." "FileExists"
13
8 23
6 23
5 7
18 0
11 00002756
0 26 "." "GetName"
13
8 24
6 24
5 0
18 0
11 00002511
10 00003046
10 00002743
0 27 8000
13
8 25
16 ChopExtension &25
0 16 "{25}" ".SAM"
13
8 25
0 808 1 "{25}" "\"
13
5 0
18 0
11 00002703
0 16 "{20}" "{25}"
13
8 19
0 259 "{19}" "r"
13
8 21
10 00002743
6 25
8 19
0 259 "{19}" "r"
13
8 21
10 00002767
5 0
8 21
10 00002214
0 297 "w4w33t.dll" "w4wt" "HCCCCJ"
13
8 12
7 "1"
8 26
0 284 "w4w33t.dll,w4wt,HCCCCJ" "{16}" "{19}" "{26}" "{17}" "{5}"
13
8 18
0 298 "{12}"
6 18
5 0
18 1
11 00002989
16 Error "{18}"
10 00003046
0 296 0
5 1
6 8
3 0
6 9
3 0
2 102 1 "{19}" [X] ""
10 00005262
0 286 "Filters" "Ami Pro" "AMIPRO2.INI"
13
8 27
0 20 "{0}" 1 ","
13
8 19
0 259 "{19}" "r"
13
8 21
6 21
5 0
18 1
11 00003375
0 18 "{19}"
13
0 16 [X] " already exists. Do you want to overwrite it?"
13
8 22
0 31 1000 "{22}"
0 26 "." "FileExists"
13
8 23
6 23
5 7
18 0
11 00003375
6 1
15
9
16 FileNameFromPath "{19}"
13
8 15
16 ChopExtension &15
16 AddPeriod &15
0 34 0 0
13
8 21
6 21
5 0
18 1
0 267
13
7 ""
18 0
1 2
11 00004418
16 FileNameFromPath "{15}"
13
8 28
16 AddPeriod &28
0 13 1 "{28}" "."
13
0 806 "{28}" [X]
13
0 16 [X] "SAM"
13
8 28
0 268
13
8 20
16 AddBackslash &20
0 16 "{20}" "{28}"
13
8 28
0 259 "{28}" "r"
13
8 21
6 21
5 0
18 1
11 00004319
0 260 "{21}"
0 18 "{28}"
13
0 16 [X] " already exists. Do you want to overwrite it?"
13
8 22
0 31 1000 "{22}"
0 26 "." "FileExists"
13
8 23
6 23
5 7
18 0
11 00004295
0 26 "." "GetName"
13
8 24
6 24
5 0
18 0
11 00004050
6 1
15
9
10 00004282
0 27 8000
13
8 25
16 ChopExtension &25
0 16 "{25}" ".SAM"
13
8 25
0 808 1 "{25}" "\"
13
5 0
18 0
11 00004242
0 16 "{20}" "{25}"
13
8 28
0 259 "{28}" "r"
13
8 21
10 00004282
6 25
8 28
0 259 "{28}" "r"
13
8 21
10 00004306
5 0
8 21
10 00003754
0 291 6
2 104 1 "{28}" 32 "" ""
13
8 21
6 21
5 1
18 1
11 00004405
6 1
15
9
10 00004435
0 267
13
8 28
0 13 1 "{15}" "."
13
0 806 "{15}" [X]
13
8 15
0 20 "{27}" 1 ","
13
8 10
0 20 "{27}" 2 ","
13
8 11
0 20 "{4}" 3 ","
13
8 29
0 20 "{4}" 4 ","
13
8 30
0 297 "{10}" "w4wf" "HCCCCJ"
13
8 12
6 12
5 0
18 0
11 00004751
0 16 "Error loading " "{10}"
13
8 13
0 3 "{13}" "Lotus Ami Pro"
10 00005253
0 807 "{15}" 7
13
8 16
16 AddPeriod &16
0 16 "{7}" "~" "{16}" "TMP"
13
8 16
7 ""
8 17
0 284 "{10},w4wf,HCCCCJ" "{28}" "{16}" "{30}" "{17}" "{5}"
13
8 18
0 298 "{12}"
6 18
5 0
18 1
11 00004977
16 Error "{18}"
6 12
5 0
18 0
11 00005082
0 16 "Error loading " "{10}"
13
8 13
0 3 "{13}" "Ami Pro"
10 00005253
0 297 "{29}" "w4wt" "HCCCCJ"
13
8 12
0 284 "{29},w4wt,HCCCCJ" "{16}" "{19}" "{30}" "{17}" "{5}"
13
8 18
6 18
5 0
18 1
11 00005239
16 Error "{18}"
0 298 "{12}"
0 296 0
6 1
15
9
14 Error
5 1
6 0
18 0
11 00000087
7 "Error opening user file."
8 2
10 00001346
5 2
6 0
18 0
11 00000158
7 "Error during read."
8 2
10 00001346
5 3
6 0
18 0
11 00000241
7 "Error opening conversion file."
8 2
10 00001346
5 4
6 0
18 0
11 00000313
7 "Error during write."
8 2
10 00001346
5 5
6 0
18 0
11 00000393
7 "Invalid data in conversion."
8 2
10 00001346
5 6
6 0
18 0
11 00000475
7 "Error opening exception file."
8 2
10 00001346
5 7
6 0
18 0
11 00000557
7 "Error writing exception file."
8 2
10 00001346
5 8
6 0
18 0
11 00000633
7 "Error obtaining memory."
8 2
10 00001346
5 9
6 0
18 0
11 00000709
7 "Error invalid document."
8 2
10 00001346
5 10
6 0
18 0
11 00000792
7 "Error out of space on output."
8 2
10 00001346
5 11
6 0
18 0
11 00000887
7 "Conversion document too large for target."
8 2
10 00001346
5 12
6 0
18 0
11 00000980
7 "Warning - Possible error in conversion."
8 2
10 00001346
5 13
6 0
18 0
11 00001066
7 "Conversion canceled by the user."
8 2
10 00001346
5 14
6 0
18 0
11 00001144
7 "Incorrect option format."
8 2
10 00001346
5 15
6 0
18 0
11 00001212
7 "Unknown error."
8 2
10 00001346
5 16
6 0
18 0
11 00001287
7 "Fatal internal error."
8 2
10 00001346
5 17
6 0
18 0
11 00001346
7 "Error during seek."
8 2
0 3 "{2}" "Lotus Ami Pro"
6 1
15
9
14 ChopExtension
27 0
8 2
0 14 "{2}"
13
8 3
5 0
8 4
6 4
5 0
18 0
11 00000339
0 15 "{2}" "{3}" 1
13
8 5
6 5
7 "\"
18 0
11 00000172
5 1
8 4
10 00000306
6 5
7 "."
18 0
11 00000267
6 3
5 1
3 1
0 806 "{2}" [X]
13
8 2
5 1
8 4
10 00000306
6 3
5 1
18 0
11 00000306
5 1
8 4
6 3
5 1
3 1
8 3
10 00000060
6 2
28 0
6 1
15
9
14 AddBackslash
27 0
8 2
0 807 "{2}" 1
13
7 "\"
18 1
11 00000098
0 16 "{2}" "\"
13
8 2
6 2
28 0
6 1
15
9
14 AddPeriod
27 0
8 2
0 807 "{2}" 1
13
7 "."
18 1
11 00000095
0 16 "{2}" "."
13
8 2
6 2
28 0
6 1
15
9
14 FileNameFromPath
5 1
8 2
0 808 1 "{0}" "\"
13
8 2
6 2
5 0
18 3
11 00000181
0 808 1 "{0}" "\"
13
8 2
0 14 "{0}"
13
6 2
3 1
0 807 "{0}" [X]
13
8 0
10 00000059
6 0
15
9
6 1
15
9
DIALOG GetName
-2134376448 4 45 97 120 59 "" "" "Lotus Ami Pro"
3 8 111 9 1000 1342177280 "static" "New name for Ami Pro document?" 0
3 20 111 12 8000 1350631552 "edit" "" 0
15 38 39 15 1 1342373889 "button" "&OK" 0
60 38 39 15 2 1342373888 "button" "&Cancel" 0
DIALOG FileExists
-2134376448 3 30 73 240 59 "" "" "Lotus Ami Pro"
6 14 228 21 1000 1342177281 "static" "{Placeholder} already exists. Do you want to overwrite it?" 0
126 38 33 15 7 1342373889 "button" "&No" 0
81 38 33 15 6 1342373888 "button" "&Yes" 0
00022148