home *** CD-ROM | disk | FTP | other *** search
Wrap
INI File | 1994-08-14 | 28.2 KB | 1,961 lines
[ver] 4 [sty] [files] [charset] 82 CHINESEBIG5 (Windows) [revisions] 0 [prn] QMS-PS 810 [port] LPT1: [lang] 1 [desc] º╓│t¡p║Γ¿├½╪Ñ▀ºΘ┬┬¬φíC 774054351 31 732570070 678 8 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 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 0 0 1 1 0 0 0 0 [nfmt] 280 1 2 . , $ Body Text 0 0 [tag] Body Single 3 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 0 0 1 1 0 0 0 0 [nfmt] 280 1 2 . , $ Body Single 0 0 [tag] Bullet 4 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 288 288 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 0 <*0> 360 1 1 0 0 0 0 [nfmt] 272 1 2 . , $ Bullet 0 0 [tag] Bullet 1 5 [fnt] Times New Roman 240 0 49152 [algn] 1 1 288 288 288 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 0 <*5> 0 1 1 0 0 0 0 [nfmt] 280 1 2 . , $ Bullet 1 0 0 [tag] Number List 6 [fnt] Times New Roman 240 0 49152 [algn] 1 1 360 360 360 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 0 <*:>. 360 1 1 0 16 0 0 [nfmt] 272 1 2 . , $ Number List 0 0 [tag] Subhead 7 [fnt] Times New Roman 240 0 49155 [algn] 1 1 0 0 0 [spc] 33 273 1 72 72 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 2 0 1 1 0 0 0 0 [nfmt] 272 1 2 . , $ Subhead 0 0 [tag] Title 8 [fnt] Arial 360 0 16385 [algn] 4 1 0 0 0 [spc] 33 446 1 144 72 1 100 [brk] 16 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 1 0 1 1 0 0 0 0 [nfmt] 272 1 2 . , $ Title 0 0 [tag] Header 9 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 0 0 1 1 0 0 0 0 [nfmt] 280 1 2 . , $ Header 0 0 [tag] Footer 11 [fnt] Times New Roman 240 0 49152 [algn] 1 1 0 0 0 [spc] 33 273 1 0 0 1 100 [brk] 4 [line] 8 0 1 0 1 1 1 10 10 1 [spec] 0 0 0 1 1 0 0 0 0 [nfmt] 280 1 2 . , $ Footer 0 0 [lay] Standard 516 [rght] 16833 11908 1 720 1440 1 1440 720 0 1 0 1 0 2 1 720 11185 14 1 720 1 1440 1 2160 1 2880 1 3600 1 4320 1 5040 1 5760 1 6480 1 7200 1 7920 1 8640 1 9360 1 10095 [hrght] [lyfrm] 1 11200 0 0 11908 1440 0 1 3 1 0 0 0 0 0 0 0 0 1 [frmlay] 1440 11908 1 1440 72 1 792 1440 0 1 0 1 1 0 1 1440 10465 2 2 4680 3 9360 [txt] Peyton McManus Lotus WPD > [frght] [lyfrm] 1 13248 0 15393 11908 16833 0 1 3 1 0 0 0 0 0 0 0 0 2 [frmlay] 16833 11908 1 1440 792 1 15465 1440 0 1 0 1 1 0 1 1440 10465 2 2 4680 3 9360 [txt] > [elay] [l1] 0 [pg] 8 44 0 0 32 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 91 0 41 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 139 0 46 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 187 0 25 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 235 0 45 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 281 0 10 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 329 0 0 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 372 0 10 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0 [edoc] <:#284,10465><:f,,> <:#284,10465><:f,,> <:#568,10465>Define CECREATEINSTANCE(LPHANDLE) DllCall("LTSCE01.DLL,CECREATEINSTANCE,HO",%1) <:#568,10465>Define CEDESTROYINSTANCE(HANDLE) DllCall("LTSCE01.DLL,CEDESTROYINSTANCE,HH",%1) <:#284,10465>Define CECALC(HINSTANE) DllCall("CECORE,CECALC,HH",%1) <:#568,10465>Define CECALCNOW(HINSTANCE, lpFormula, lpOutPut) DllCall("LTSCE01.DLL,CECALCNOW,HHCC",%1,%2,%3) <:#284,10465><:f,,> <:#284,10465>define IsOKToRun(menuname) GetInfo(217, 24, %1); <:#284,10465><:f,,> @Outline2@<:#284,10465>' Win API defines @Outline2@<:#568,10465>Define MyGetDlgItemText(hdg, id, string, max) DllCall("User,GetDlgItemText,HHHCH",%1,%2,%3,%4) <:#284,10465>define CloseDlg(id) dllcall("user,PostMessage,HHHHHH", HDLG, 0X111, %1, 0, 0). <:#284,10465>Define EnableWindow() DllCall("User,EnableWindow,AHA",%1,%2) @Outline2@<:#284,10465> @Outline2@<:#284,10465>' Dialog box defines @Outline2@<:#284,10465>Define Methodcombo 9500 @Outline2@<:#284,10465>Define Costedit 8000 @Outline2@<:#284,10465>Define Salvageedit 8001 @Outline2@<:#284,10465>Define Lifeedit 8002 @Outline2@<:#284,10465>Define Periodedit 8003 @Outline2@<:#284,10465>Define Allowancetext 1007 @Outline2@<:#284,10465> @Outline2@<:#284,10465> @Outline2@<:#284,10465> @Outline2@<:#284,10465><:X3,-32768;Include "Amixlate.sam!qkdeprec">Define Reporttext "Press the report button to generate a full depreciation schedule." @Outline3@<:#284,10465>Define Method_DDB "Double-Declining Balance" @Outline3@<:#284,10465>Define Method_SUM "Sum-of-Years' Digits" @Outline3@<:#284,10465>Define Method_Line "Straight-Line" @Outline3@<:#284,10465>Define DefNew "_Default.sty" @Outline3@<:#284,10465>Define DefStyle "Title" @Outline3@<:#284,10465>Define DefFont "Arial" @Outline3@<:#284,10465>Define HeadingName "Depreciation Schedule" @Outline3@<:#284,10465>Define DefPeriod "Period" @Outline3@<:#284,10465>Define DefNBV "Net Book Value" @Outline3@<:#284,10465>Define DefDeprec "Depreciation" @Outline3@<:#284,10465>Define Formula_DDB "@DDB" @Outline3@<:#284,10465>Define Formula_SYD "@SYD" @Outline3@<:#284,10465>Define Formula_SLN "@SLN" @Outline3@<:#284,10465>Define Formula_Round "@Round({Allowance};0)" @Outline3@<:#284,10465>Define DDBCalc "@DDB({Cost};{Salvage};{Life};{Period})" @Outline3@<:#284,10465>Define SYDCalc "@SYD({Cost};{Salvage};{Life};{Period})" @Outline3@<:#284,10465>Define SLNCalc "@SLN({Cost};{Salvage};{Life})" @Outline3@<:#284,10465>Define RoundCalc "@Round({Allowance};2)" <:#284,10465> @Outline3@<:#568,10465>Define Desc "Enter values to either calculate a depreciation allowance for a particular period or generate a full depreciation schedule."<:X~3,-32768;Include "Amixlate.sam!qkdeprec"> @Outline2@<:#284,10465> @Outline2@<:#284,10465><:X3,-32768;Include "Amixlate.sam!common">Define NotFound "LTSCE01.DLL not found. Copy the dll to your windows directory" @Outline3@<:#284,10465>Define ErrorMessage "The ltsce01.dll could not be loaded. Please copy the dll to the Ami Pro directory."<:X~3,-32768;Include "Amixlate.sam!common"> @Outline2@<:#284,10465> <:#284,10465>Define GetPrefix() GetGlobalVar$("Prefix") <:#284,10465>Define GetSuffix() GetGlobalVar$("Suffix") <:#284,10465> @Outline2@<:#284,10465> @Outline2@<:#284,10465>Define NumDecimals 2 @Outline2@<:#284,10465> <:#284,10465>Declare StartEngine() <:#284,10465>Declare CreateReport(ReportType, Cost, Salvage, Life, Period) <:#284,10465>Declare FontDlg(Action, Hdlg, id) <:#284,10465>Declare BuildTable(Life) <:#284,10465>Declare GetFormats(Action) <:#284,10465> <:#284,10465> <:#284,10465> @Subhead@<:#284,10465>Function Depreciate() <:#284,10465>DefStr hInstance; <:#284,10465>Mac = GetRunningMacroFile$() <:#284,10465>Id = StartEngine() <:#284,10465>If Id = 0 <:#284,10465> Message(ErrorMessage) <:#284,10465> Return 0; <:#284,10465>Endif <:#284,10465>RetVal = CECREATEINSTANCE(&hInstance) <:#284,10465>AllocGlobalVar("hInstance",1) <:#284,10465>SetGlobalVar("hInstance",hInstance) <:#284,10465>FontDlg(1,0,0) <:#284,10465>GetFormats(1) ' retrieve the international settings <:#284,10465>Dim Method(3) <:#284,10465>Method(1) = Method_DDB <:#284,10465>Method(2) = Method_SUM <:#284,10465>Method(3) = Method_Line <:#284,10465> <:#284,10465>FillEdit(1007, Desc) <:#284,10465>FillEdit(1000,Reporttext) <:#284,10465>FillEdit(Methodcombo, &Method) <:#284,10465>SetDlgCallBack(0,"{Mac}!InitDlg") <:#284,10465>SetDlgCallBack(Methodcombo,"{Mac}!DataChange") <:#284,10465>SetDlgCallBack(Costedit,"{Mac}!DataChange") <:#284,10465>SetDlgCallBack(Salvageedit,"{Mac}!DataChange") <:#284,10465>SetDlgCallBack(Lifeedit,"{Mac}!DataChange") <:#284,10465>SetDlgCallBack(Periodedit,"{Mac}!DataChange") @Outline3@<:#284,10465>DlgKeyInterrupt(112, "{mac}!DisplayHelp") @Outline3@<:#284,10465> <:#284,10465>'DlgKeyInterrupt(<[>Tab],"{Mac}!DataChange") <:#284,10465> <:#284,10465>Box = DialogBox(".","Deprec") <:#284,10465>If Box <<<;> 3 <:#284,10465> Return -1 <:#284,10465>Endif <:#284,10465>FontDlg(4,0,0) <:#284,10465>ReportType = GetDialogField$(Methodcombo) <:#284,10465>Cost = GetDialogField$(Costedit) * 1 <:#284,10465>Salvage = GetDialogField$(Salvageedit) * 1 <:#284,10465>Life = GetDialogField$(Lifeedit) * 1 <:#284,10465>Period = GetDialogField$(Periodedit) * 1 <:#284,10465>CreateReport(ReportType, Cost, Salvage, Life, Period) <:#284,10465>CEDestroyInstance(hInstance) <:#284,10465>FreeGlobalVar("hInstance") <:#284,10465>DllFreeLib(id) <:#284,10465>GetFormats(0) <:#284,10465>End function <:#284,10465> <:#284,10465> <:#284,10465> @Subhead@<:#284,10465>Function InitDlg(hDlg, id, value) <:#284,10465>IgnoreKeyBoard(2) <:#284,10465>HourGlass(on) <:#284,10465>For id = 1000 to 1007 <:#284,10465> FontDlg(3,Hdlg, id) <:#284,10465>Next <:#284,10465>FontDlg(3, Hdlg, 9500) <:#284,10465>For h = 8000 to 8003 <:#284,10465> FontDlg(3, Hdlg, h) <:#284,10465>Next <:#284,10465>EnableWindow(GetDlgItem(Hdlg, 3),0) <:#284,10465>HourGlass(off) <:#284,10465>End Function <:#284,10465> <:#284,10465> <:#284,10465> @Subhead@<:#284,10465>Function DataChange(Hdlg, id, value) <:#284,10465>IgnoreKeyBoard(2) <:#284,10465>DefStr Allowance; <:#284,10465>hInstance = GetGlobalVar$("hInstance") <:#284,10465>Cost = GetDlgITemText(Hdlg, Costedit) <:#284,10465>Salvage = GetDlgItemText(hDlg, Salvageedit) <:#284,10465>Life = GetDlgItemText(hDlg, Lifeedit) <:#284,10465>Period = GetDlgItemText(hDlg, Periodedit) <:#284,10465> <:#284,10465>TypeMethod = GetDlgItemText(hDlg, Methodcombo) <:#284,10465>Switch TypeMethod <:#284,10465> Case Method_DDB <:#284,10465> <:#284,10465> CECalcNow(hInstance,DDBCalc,&Allowance) <:#284,10465> Break; <:#284,10465> <:#284,10465> Case Method_SUM <:#284,10465> CECalcNow(hInstance,SYDCalc,&Allowance) <:#284,10465> Break; <:#284,10465> <:#284,10465> Case Method_LINE <:#284,10465> CECalcNow(hInstance,SLNCalc,&Allowance) <:#284,10465> Break; <:#284,10465> <:#284,10465> Default <:#284,10465> Break; <:#284,10465>EndSwitch <:#284,10465>CeCalcNow(hInstance, RoundCalc,&Allowance) If 0 = Instr(0,Allowance,"ERR") <:#284,10465> EnableWindow(GetDlgItem(hdlg, 3),1) <:#284,10465>Else <:#284,10465> EnableWindow(GetDlgItem(hDlg, 3),0) <:#284,10465>Endif <:#284,10465>SetDlgItemText(hDlg, 1008, Allowance) <:#284,10465>End Function <:#284,10465> @Subhead@<:#284,10465>Function CreateReport(ReportType, Cost, Salvage, Life, Period) <:#284,10465>DefStr Allowance, Value, RoundedValue, CurrentValue, TotalDeprec; <:#284,10465>Switch ReportType <:#284,10465> <:#284,10465> Case Method_DDB <:#284,10465> Formula =Formula_DDB <:#284,10465> Break; <:#284,10465> Case Method_Sum <:#284,10465> Formula = Formula_SYD <:#284,10465> Break; <:#284,10465> Case Method_Line <:#284,10465> Formula = Formula_SLN <:#284,10465> Break; <:#284,10465> Default <:#284,10465> Formula = Formula_DDB <:#284,10465> Break; <:#284,10465>EndSwitch <:#284,10465> <:#284,10465>BuildTable(Life) <:#284,10465>hInstance = GetGlobalVar$("hInstance") <:#284,10465>For Period = 1 to Life <:#284,10465> If Formula = Formula_SLN <:#284,10465> CECalcNow(hInstance,"{Formula}({Cost};{Salvage};{Life})",&Allowance) <:#284,10465> Else <:#284,10465> CECalcNow(hInstance,"{Formula}({Cost};{Salvage};{Life};{Period})",&Allowance) <:#284,10465> Endif <:#284,10465> CeCalcNow(hInstance,Formula_Round,&Value) <:#284,10465> Value = Value * 1 <:#284,10465> Type ("{Period}<[>Tab]{Value}<[>Tab]") <:#284,10465> TotalDeprec = (TotalDeprec + Value) * 1 <:#284,10465> CurrentValue = (Cost - TotalDeprec) * 1 <:#284,10465> CurrentValue = CurrentValue * 1 <:#284,10465> Type("{CurrentValue}<[>Tab]") <:#284,10465>Next <:#284,10465>End Function <:#284,10465> <:#284,10465> <:#284,10465> @Subhead@<:#284,10465>Function BuildTable(Life) <:#284,10465>NewStyle = DefNew <:#284,10465>TitleStyle = DefStyle <:#284,10465>FontName = DefFont <:#284,10465>Period = DefPeriod <:#284,10465>Depreciation = DefDeprec <:#284,10465>NBV = DefNBV <:#284,10465> <:#284,10465>New("{NewStyle}" 1 0 ) <:#284,10465>TotalRow = Life + 3 <:#284,10465>Tables(1 1 3 TotalRow ) <:#284,10465>SetStyle("{TitleStyle}" ) <:#284,10465>ModifySelect("{TitleStyle}" ) <:#284,10465>ModifyFont("{FontName}" 280 0 8197 ) <:#284,10465>ModifyReflow( ) <:#284,10465>Type( "<[>SHIFTRight]<[>SHIFTRight]" ) <:#284,10465>SizeColumnRow(1944 -32768 -32768 -32768 ) <:#284,10465>ConnectCells( ) <:#284,10465>Type( HeadingName ) <:#284,10465>TableLines(96 31 0 1 16250871 ) <:#284,10465>TableLayout(2 1 3024 86 284 86 1 0 1 0 0 0 ) <:#284,10465>Type( "<[>Tab]{Period}<[>Tab]{Depreciation}<[>Tab]{NBV}<[>Tab]" ) <:#284,10465>End Function <:#284,10465> @Subhead@<:#284,10465>function DisplayHelp() @Outline2@<:#284,10465>' two defines needed for help. The help name and panel number are defined above @Outline2@<:#284,10465>define FindWindowa() DllCall("user,FindWindow,HCC", %1, %2) @Outline2@<:#284,10465>define WinHelpa(hWnd, file, cmd, ptr) DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4) @Outline2@<:#284,10465>prohWnd = FindWindowa("AmiProWndA", 0) @Outline2@<:#284,10465>helpfile = strcat$(GetAmiDirectory$(), "HelpPack.hlp") @Outline2@<:#284,10465>PanelNum= 50 @Outline2@<:#284,10465>WinHelpa(prohWnd, helpfile, 0x0001, Panelnum) @Outline2@<:#284,10465>end function @Subhead@<:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> @Subhead@<:#284,10465>Function FontDlg(Action, Hdlg, id) <:#284,10465>' 1 Create a font and allocvar <:#284,10465>' 2 Return the handle of the create font <:#284,10465>' 3 Set the id specified to the font <:#284,10465>' 4 Freeglobalvar and delete created object <:#284,10465> @Outline2@<:#568,10465>define CreateFontDLG() DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14) @Outline2@<:#284,10465>define DeleteObjectDLG(handle) DllCall("gdi,DeleteObject,HH", %1) @Outline2@<:#568,10465>define SendMessageDLG(hwnd, msg, wpara, lparm) DllCall("user,SendMessage,HHHHJ", %1, %2, %3, %4) @Outline2@<:#284,10465> @Outline2@<:#284,10465> <:#284,10465>Switch Action <:#284,10465> Case 1 ' Create the font and store it @Outline2@<:#284,10465> Font = CreateFontDLG(13, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 32, "Helv") <:#284,10465> AllocGlobalVar("FontHandle",1) <:#284,10465> If Font <:#284,10465> SetGlobalVar("FontHandle",Font) <:#284,10465> Return Font <:#284,10465> Else <:#284,10465> Return 0; ' no font <:#284,10465> Endif <:#284,10465> Break; <:#284,10465> Case 2 ' Return the handle to the font <:#284,10465> Handle = GetGlobalVar$("FontHandle") <:#284,10465> If Handle <:#284,10465> Return Handle <:#284,10465> Else <:#284,10465> Return 0 <:#284,10465> Endif <:#284,10465> <:#284,10465> Case 3 ' Set the id to the font <:#284,10465> Handle = GetGlobalVar$("FontHandle") <:#284,10465> If Handle <:#284,10465> IdControl = GetDlgITem(Hdlg, id) <:#284,10465> SendMessageDlg(idControl, 0x30, Handle, 0) <:#284,10465> Return 1 <:#284,10465> Else <:#284,10465> Return 0 <:#284,10465> Endif <:#284,10465> Break; <:#284,10465> <:#284,10465> Case 4 ' Delete the font and clear the var <:#284,10465> Handle = GetGlobalVar$("FontHandle") <:#284,10465> If Handle <:#284,10465> DeleteObjectDLG(Handle) <:#284,10465> Stat = 1 <:#284,10465> Else <:#284,10465> Stat = 0 <:#284,10465> Endif <:#284,10465> FreeGlobalVar("FontHandle") <:#284,10465> Return Stat <:#284,10465> Default <:#284,10465>EndSwitch <:#284,10465> <:#284,10465>End Function @Subhead@<:#284,10465> @Subhead@<:#284,10465><:f,BArial,>Function GetFormats<:f><:f,BArial,>(Action) <:#284,10465><:f,BArial,>iCurrency = GetProfileString$("Intl","iCurrency","Win.ini") <:#284,10465>currency = GetProfileString$("Intl","sCurrency","Win.ini") <:#284,10465><:f,BArial,>AllocGlobalVar("Prefix",1) <:#284,10465><:f,BArial,>AllocGlobalVar("Suffix",1)<:f> <:#284,10465><:f,BArial,> <:#284,10465><:f,BArial,>Switch Action <:#284,10465><:f,BArial,> Case 1 ' turn this on <:#284,10465><:f,BArial,> Switch iCurrency <:#284,10465><:f,BArial,> Case 0 <:#284,10465><:f,BArial,> Prefix = Currency<:f> <:#284,10465><:f,BArial,> Suffix = "" <:#284,10465><:f,BArial,> Case 1 <:#284,10465><:f,BArial,> Prefix = "" <:#284,10465><:f,BArial,> Suffix = Currency<:f> <:#284,10465><:f,BArial,> Case 2 <:#284,10465><:f,BArial,> Prefix = StrCat$(Currency," ") <:#284,10465><:f,BArial,> Suffix = "" <:#289,10465> <:f,BArial,> Case 3 <:#284,10465><:f,BArial,> Prefix = "" <:#284,10465><:f,BArial,> Suffix = StrCat$(" ",Currency) <:#284,10465><:f,BArial,> endSwitch <:#284,10465><:f,BArial,> SetGlobalVar("Suffix",Suffix) <:#284,10465><:f,BArial,> SetGlobalVar("Prefix",Prefix) <:#284,10465><:f,BArial,> <:#284,10465><:f,BArial,> Case 0 ' free globals <:#284,10465><:f,BArial,> FreeGlobalVar("Suffix") <:#284,10465><:f,BArial,> FreeGlobalVar("Prefix") <:#284,10465><:f,BArial,> <:#284,10465><:f,BArial,>EndSwitch <:#284,10465><:f,BArial,>End Function <:#284,10465> <:#284,10465> @Subhead@<:#284,10465><:f,BArial,> <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> @Subhead@<:#284,10465>Function StartEngine() <:#284,10465>LibId = DLLLoadLib("LTSCE01.DLL","CECreateInstance","HO") <:#284,10465>If LibId = 0 <:#284,10465> Message(ErrorMessage) <:#284,10465> Return 0; <:#284,10465>Endif <:#284,10465>Return Libid <:#284,10465>End function <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465> <:#284,10465>DIALOG Deprec <:#284,10465>-2134376448 17 31 43 246 103 "" "AmiDialog" "QuickDepreciation" <:#284,10465>FONT 8 "Helv" <:#284,10465>122 20 42 12 8000 1350631424 "edit" "" 0 <:#284,10465>122 35 42 12 8001 1350631424 "edit" "" 0 <:#284,10465>122 50 42 12 8002 1350631424 "edit" "" 0 <:#284,10465>122 65 42 12 8003 1350631424 "edit" "" 0 <:#284,10465>80 84 86 40 9500 1344339971 "combobox" "" 0 <:#284,10465>200 4 40 14 1 1342373889 "button" "Done" 0 <:#284,10465>200 21 40 14 3 1342373888 "button" "Report" 0 <:#284,10465>172 38 71 29 1000 1342177280 "static" "text" 0 <:#284,10465>11 22 89 8 1001 1342177280 "static" "Amount paid for the asset:" 0 <:#284,10465>11 37 105 9 1002 1342177280 "static" "Estimated asset salvage value:" 0 <:#284,10465>11 52 106 8 1003 1342177280 "static" "Total number of periods (life):" 0 <:#284,10465>11 67 103 9 1004 1342177280 "static" "Period to calculate allowance:" 0 <:#284,10465>11 86 64 8 1005 1342177280 "static" "Depreciation method:" 0 <:#284,10465>177 72 60 10 1006 1342177280 "static" "Allowance for period:" 0 <:#284,10465>179 82 55 10 1008 1342177281 "static" "" 0 <:#284,10465>172 64 69 33 20 1342308359 "button" "" 0 <:#284,10465>6 2 170 16 1007 1342177280 "static" "text" 0 <:#284,10465>END DIALOG > [Embedded] 00021901 > [macsum] 10 Depreciate 0 0 12 63 InitDlg 1253 3 2 113 DataChange 1643 3 8 129 CreateReport 2537 5 8 165 BuildTable 3399 1 8 203 DisplayHelp 3861 0 4 227 FontDlg 4046 3 5 241 GetFormats 4843 1 5 297 StartEngine 5412 0 2 337 Deprec 5638 0 -1 351 [macse] 14 Depreciate 0 802 13 8 2 16 StartEngine 13 8 3 6 3 5 0 18 0 11 00000188 0 3 "The ltsce01.dll could not be loaded. Please copy the dll to the Ami Pro directory." 5 0 15 9 0 284 "LTSCE01.DLL,CECREATEINSTANCE,HO" &1 13 8 4 0 271 "hInstance" 1 0 264 "hInstance" "{1}" 16 FontDlg 1 0 0 16 GetFormats 1 5 3 21 5 [X] 5 1 7 "Double-Declining Balance" 23 5 5 2 7 "Sum-of-Years' Digits" 23 5 5 3 7 "Straight-Line" 23 5 0 31 1007 "Enter values to either calculate a depreciation allowance for a particular period or generate a full depreciation schedule." 0 31 1000 "Press the report button to generate a full depreciation schedule." 0 31 9500 &5 0 41 0 "{2}!InitDlg" 0 41 9500 "{2}!DataChange" 0 41 8000 "{2}!DataChange" 0 41 8001 "{2}!DataChange" 0 41 8002 "{2}!DataChange" 0 41 8003 "{2}!DataChange" 0 47 112 "{2}!DisplayHelp" 0 26 "." "Deprec" 13 8 6 6 6 5 3 18 1 11 00000935 5 -1 15 9 16 FontDlg 4 0 0 0 27 9500 13 8 7 0 27 8000 13 5 1 4 0 8 8 0 27 8001 13 5 1 4 0 8 9 0 27 8002 13 5 1 4 0 8 10 0 27 8003 13 5 1 4 0 8 11 16 CreateReport "{7}" "{8}" "{9}" "{10}" "{11}" 0 284 "LTSCE01.DLL,CEDESTROYINSTANCE,HH" "{1}" 0 266 "hInstance" 0 298 "{3}" 16 GetFormats 0 6 0 15 9 14 InitDlg 0 32 2 0 296 1 5 1000 8 1 5 1007 6 1 18 2 12 00000120 10 00000159 5 1 6 1 3 0 8 1 10 00000042 16 FontDlg 3 "{0}" "{1}" 10 00000087 16 FontDlg 3 "{0}" 9500 5 8000 8 4 5 8003 6 4 18 2 12 00000275 10 00000314 5 1 6 4 3 0 8 4 10 00000197 16 FontDlg 3 "{0}" "{4}" 10 00000242 0 44 "{0}" 3 13 0 284 "User,EnableWindow,AHA" [X] 0 0 296 0 6 3 15 9 14 DataChange 0 32 2 0 265 "hInstance" 13 8 5 0 42 "{0}" 8000 13 8 6 0 42 "{0}" 8001 13 8 7 0 42 "{0}" 8002 13 8 8 0 42 "{0}" 8003 13 8 9 0 42 "{0}" 9500 13 8 10 7 "Double-Declining Balance" 6 10 18 0 11 00000332 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{5}" "@DDB({6};{7};{8};{9})" &4 10 00000626 10 00000626 7 "Sum-of-Years' Digits" 6 10 18 0 11 00000478 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{5}" "@SYD({6};{7};{8};{9})" &4 10 00000626 10 00000626 7 "Straight-Line" 6 10 18 0 11 00000613 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{5}" "@SLN({6};{7};{8})" &4 10 00000626 10 00000626 10 00000626 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{5}" "@Round({4};2)" &4 5 0 0 808 0 "{4}" "ERR" 13 18 0 11 00000804 0 44 "{0}" 3 13 0 284 "User,EnableWindow,AHA" [X] 1 10 00000859 0 44 "{0}" 3 13 0 284 "User,EnableWindow,AHA" [X] 0 0 43 "{0}" 1008 "{4}" 6 3 15 9 14 CreateReport 7 "Double-Declining Balance" 6 0 18 0 11 00000113 7 "@DDB" 8 11 10 00000319 10 00000319 7 "Sum-of-Years' Digits" 6 0 18 0 11 00000205 7 "@SYD" 8 11 10 00000319 10 00000319 7 "Straight-Line" 6 0 18 0 11 00000290 7 "@SLN" 8 11 10 00000319 10 00000319 7 "@DDB" 8 11 10 00000319 16 BuildTable "{3}" 0 265 "hInstance" 13 8 12 5 1 8 4 6 3 6 4 18 2 12 00000454 10 00000850 5 1 6 4 3 0 8 4 10 00000379 6 11 7 "@SLN" 18 0 11 00000568 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{12}" "{11}({1};{2};{3})" &6 10 00000638 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{12}" "{11}({1};{2};{3};{4})" &6 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{12}" "@Round({6};0)" &7 6 7 5 1 4 0 8 7 0 6 "{4}[9]{7}[9]" 6 10 6 7 3 0 5 1 4 0 8 10 6 1 6 10 3 1 5 1 4 0 8 9 6 9 5 1 4 0 8 9 0 6 "{9}[9]" 10 00000421 6 5 15 9 14 BuildTable 7 "_Default.sty" 8 2 7 "Title" 8 3 7 "Arial" 8 4 7 "Period" 8 5 7 "Depreciation" 8 6 7 "Net Book Value" 8 7 2 101 1 "{2}" 1 0 6 0 5 3 3 0 8 8 2 457 1 1 1 3 "{8}" 2 323 1 "{3}" 2 311 1 "{3}" 2 315 1 "{4}" 280 0 8197 2 319 1 0 6 "[4135][4135]" 2 634 1 1944 -32768 -32768 -32768 2 635 1 0 6 "Depreciation Schedule" 2 632 1 96 31 0 1 16250871 2 626 1 2 1 3024 86 284 86 1 0 1 0 0 0 0 6 "[9]{5}[9]{6}[9]{7}[9]" 6 1 15 9 14 DisplayHelp 0 284 "user,FindWindow,HCC" "AmiProWndA" 0 13 8 1 0 798 13 0 16 [X] "HelpPack.hlp" 13 8 2 5 50 8 3 0 284 "user,WinHelp,HHCHJ" "{1}" "{2}" 1 "{3}" 6 0 15 9 14 FontDlg 5 1 6 0 18 0 11 00000255 0 284 "gdi,CreateFont,HHHHHHHHHHHHHHC" 13 0 0 0 400 0 0 0 0 0 0 0 0 "Helv" 13 8 4 0 271 "FontHandle" 1 6 4 11 00000217 0 264 "FontHandle" "{4}" 6 4 15 9 10 00000229 5 0 15 9 10 00000785 10 00000785 5 2 6 0 18 0 11 00000381 0 265 "FontHandle" 13 8 5 6 5 11 00000356 6 5 15 9 10 00000368 5 0 15 9 10 00000785 5 3 6 0 18 0 11 00000596 0 265 "FontHandle" 13 8 5 6 5 11 00000558 0 44 "{1}" "{2}" 13 8 6 0 284 "user,SendMessage,HHHHJ" "{6}" 48 "{5}" 0 5 1 15 9 10 00000570 5 0 15 9 10 00000785 10 00000785 5 4 6 0 18 0 11 00000785 0 265 "FontHandle" 13 8 5 6 5 11 00000730 0 284 "gdi,DeleteObject,HH" "{5}" 5 1 8 7 10 00000740 5 0 8 7 0 266 "FontHandle" 6 7 15 9 10 00000785 6 3 15 9 14 GetFormats 0 286 "Intl" "iCurrency" "Win.ini" 13 8 2 0 286 "Intl" "sCurrency" "Win.ini" 13 8 3 0 271 "Prefix" 1 0 271 "Suffix" 1 5 1 6 0 18 0 11 00000496 5 0 6 2 18 0 11 00000233 6 3 8 4 7 "" 8 5 10 00000439 5 1 6 2 18 0 11 00000296 7 "" 8 4 6 3 8 5 10 00000439 5 2 6 2 18 0 11 00000374 0 16 "{3}" " " 13 8 4 7 "" 8 5 10 00000439 5 3 6 2 18 0 11 00000439 7 "" 8 4 0 16 " " "{3}" 13 8 5 0 264 "Suffix" "{5}" 0 264 "Prefix" "{4}" 10 00000557 5 0 6 0 18 0 11 00000557 0 266 "Suffix" 0 266 "Prefix" 6 1 15 9 14 StartEngine 0 297 "LTSCE01.DLL" "CECreateInstance" "HO" 13 8 1 6 1 5 0 18 0 11 00000202 0 3 "The ltsce01.dll could not be loaded. Please copy the dll to the Ami Pro directory." 5 0 15 9 6 1 15 9 6 0 15 9 DIALOG Deprec -2134376448 17 31 43 246 103 "" "AmiDialog" "QuickDepreciation" FONT 8 "Helv" 122 20 42 12 8000 1350631424 "edit" "" 0 122 35 42 12 8001 1350631424 "edit" "" 0 122 50 42 12 8002 1350631424 "edit" "" 0 122 65 42 12 8003 1350631424 "edit" "" 0 80 84 86 40 9500 1344339971 "combobox" "" 0 200 4 40 14 1 1342373889 "button" "Done" 0 200 21 40 14 3 1342373888 "button" "Report" 0 172 38 71 29 1000 1342177280 "static" "text" 0 11 22 89 8 1001 1342177280 "static" "Amount paid for the asset:" 0 11 37 105 9 1002 1342177280 "static" "Estimated asset salvage value:" 0 11 52 106 8 1003 1342177280 "static" "Total number of periods (life):" 0 11 67 103 9 1004 1342177280 "static" "Period to calculate allowance:" 0 11 86 64 8 1005 1342177280 "static" "Depreciation method:" 0 177 72 60 10 1006 1342177280 "static" "Allowance for period:" 0 179 82 55 10 1008 1342177281 "static" "" 0 172 64 69 33 20 1342308359 "button" "" 0 6 2 170 16 1007 1342177280 "static" "text" 0 00021926