<?xml version="1.0"?><RBProject version="4.5.2"><block type="Project" ID="0"> <MajorVersion>1</MajorVersion> <MinorVersion>0</MinorVersion> <SubVersion>3</SubVersion> <Release>0</Release> <NonRelease>0</NonRelease> <ShortVersion>1.0.3</ShortVersion> <LongVersion>1.0.3</LongVersion> <InfoVersion>2005/09/14</InfoVersion> <Region>0</Region> <DefaultViewID>1</DefaultViewID> <DefaultLanguage>0</DefaultLanguage> <CurrentLanguage>0</CurrentLanguage> <Target>1</Target> <BuildFlags>4</BuildFlags> <Icon>  <Element>   <ItemType>1768123448</ItemType>   <ItemData><Hex bytes="1024">81FBFBFBFBFBFBFBFCFCFCFCFCFCFCACACACACF5000000000000000000000000FB00002A002A002A002A2A00F500F500F500FCFBF50000000000000000000000FB002A002A2A2A2A2A2A2AF500F500FBFBFBFBFBFBFBFBFBFB00000000000000FB2A002A2A2A2A2A2A2A5500F500FBE3E3E3E3E3E3E3E3FBFB00000000000000FB002A2A2A2A2A2A2A2A2AF500FBE3E3E3E3E3E3E3E3FBE3FB00000000000000FB2A2A2A2A2A2A2A2A2A5500FBE3E3E3E3E3E3E3E3FBE3E3FB00000000000000FB002A2A2A2A2A2A2A552AFBFBFBFBFBFBFBFBFBFBE3E3E3FB00000000000000FB2A2A2A2A2A2A2A2A2A55FBE3E3E3E3E3E3E3E3FBE3E3E3FB00000000000000FB002A2A2A2A2A552A552AFBE3E3E3E3E3E3E3E3FBE3E3E3FB00000000000000FB2A2A2A552A552A552A55FBE3E3FFFFFFFFE3E3FBE3E3E3FB00000000000000FB00000000F500F500F500FBE3E3E3E3E3E3E3E3FBE3E3E3FB00000000000000FB000000F500F500F500F5FBE3FFFFFFFFFFFFE3FBE3E3E3FB00000000000000FC0000F500F500F500F500FBE3E3FFE3FFE3E3E3FBE3E3E3FB00000000000000FC000000F500F500F500F5FBE3E3FFE3FFE3FFE3FBE3E3E3FB00000000000000FC0000F500F500F500F500FBE3FFFAE3FAFFFAE3FBE3E3E3FB00000000000000FC000000F500F500F500F5FBE3E3E3E3E3E3E3E3FBE3E3E3FB00000000000000FC0000F500F500F500F500FBE3E3E3E3E3E3E3E3FBE3E3E3FB00000000000000FC000000F500F500F500F5FBE3E3E3E3E3E3E3E3FBE3E3E3FB00000000000000FC0000F500F500F500F500FBE3E3FFE3FAFFFFE3FBE3E3E3FB00000000000000FC000000F500F500F500F5FBE3FAFFFAFFE3E3E3FBE3E3E3FB00000000000000FC0000F500F500F500F500FBE3FFFFFFFFFFFFE3FBE3E3E3FB00000000000000FC000000F500F500F500F5FBE3FFFFFFFFE3E3E3FBE3E3E3FB00000000000000AC0000F500F500F500F500FBE3FFFFFFFFFFFFFAFBE3E3E3FB00000000000000AC000000F500F500F500F5FBE3E3FFFFFFFFE3E3FBE3E3E3FB00000000000000AC0000F500F500F500F500FBE3E3FFE3FFE3FFE3FBE3E3E3FB00000000000000AC000000F500F500F500F5FBE3E3FFE3FFFFE3FAFBE3E3E3FB00000000000000AC0000F500F500F500F500FBE3E3E3E3E3E3E3E3FBE3E3E3FBF6F50000000000AC00F500F500F500F5F5F5FBE3E3E3E3E3E3E3E3FBE3E3E3FBF8F7F6F5000000AC0000F500F500F500F5F5FBE3E3E3E3E3E3E3E3FBE3E3FBFFF9F8F72BF6F500AC00F500F500F5F5F5F5F5FBE3E3E3E3E3E3E3E3FBE3FBF7FFFAF9F8F8F7F500AC0000F5F5F5F5F5F5F5F5FBE3E3E3E3E3E3E3E3FBFBF6F7FFFAFA56F82BF500ACFDFDFDFDFDFDFDFDFDFEFBFBFBFBFBFBFBFBFBFBFFFFFFFFFAF956F7F60000</Hex></ItemData>  </Element>  <Element>   <ItemType>1229147683</ItemType>   <ItemData><Hex bytes="256">FFFFE000800030008001FF808003FF808007FF80800FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFF80801FFEC0801FFCE0FFFFFFC0FFFFF000956AB800AFF5FF80DFEBFF80BFF7FF80FFEFFF80BFFFFF80FFFFFF80BFFFFF80FFFFFF80855FFF808ABFFF80955FFF808ABFFF80955FFF808ABFFF80955FFF808ABFFF80955FFF808ABFFF80955FFF808ABFFF80955FFF808ABFFF80955FFF808ABFFF80955FFFE0AAFFFFF8957FFFFEABFFFFFE9FFFFFFEFFFFFFFC</Hex></ItemData>  </Element> </Icon> <ColorPalette>  <ItemFlags>0</ItemFlags>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element>  <Element>-1</Element> </ColorPalette> <MacCreator>Na09</MacCreator> <BuildMacName>&#37261;&#35496;&#37608;&#36019;&#37536;</BuildMacName> <BuildCarbonName>My Application (Mac OS X)</BuildCarbonName> <BuildSize>20971520</BuildSize> <BuildMinSize>10289152</BuildMinSize> <WinMDICaption>My Application</WinMDICaption> <BuildWinName>AppName.exe</BuildWinName> <BuildWinMDI>0</BuildWinMDI> <EditBounds><Rect left="96" top="63" width="200" height="190"/></EditBounds> <FileType>  <ItemName>text</ItemName>  <MacCreator>R*ch</MacCreator>  <ItemType>TEXT</ItemType>  <ItemDef></ItemDef>  <ItemFlags>0</ItemFlags> </FileType></block><block type="Window" ID="1"> <ObjName>Mototyou</ObjName> <ObjContainerID>0</ObjContainerID> <EditBounds><Rect left="376" top="76" width="899" height="731"/></EditBounds> <EditSplit>165</EditSplit> <LastPositionH>168</LastPositionH> <LastPositionV>115</LastPositionV> <PropertyVal Name="Name">Mototyou</PropertyVal> <PropertyVal Name="Frame">0</PropertyVal> <PropertyVal Name="HasBackColor">False</PropertyVal> <PropertyVal Name="BackColor">16777215</PropertyVal> <PropertyVal Name="Backdrop">0</PropertyVal> <PropertyVal Name="Title">&#37261;&#35496;&#37608;&#36019;&#37536;</PropertyVal> <PropertyVal Name="Visible">True</PropertyVal> <PropertyVal Name="FullScreen">False</PropertyVal> <PropertyVal Name="MenuBarVisible">True</PropertyVal> <PropertyVal Name="CloseBox">False</PropertyVal> <PropertyVal Name="GrowIcon">False</PropertyVal> <PropertyVal Name="ZoomIcon">False</PropertyVal> <PropertyVal Name="BalloonHelp"></PropertyVal> <PropertyVal Name="MacProcID">0</PropertyVal> <PropertyVal Name="Placement">0</PropertyVal> <PropertyVal Name="Width">640</PropertyVal> <PropertyVal Name="Height">460</PropertyVal> <PropertyVal Name="MinWidth">64</PropertyVal> <PropertyVal Name="MinHeight">64</PropertyVal> <PropertyVal Name="MaxWidth">32000</PropertyVal> <PropertyVal Name="MaxHeight">32000</PropertyVal> <FormDefn>  <ObjName>Mototyou</ObjName>  <ObjSize>120</ObjSize>  <Superclass>Window</Superclass>  <IsInterface>0</IsInterface>  <Method>   <ItemName>MainListClear</ItemName>   <ItemParams></ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>9</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>9</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MainListClear()</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine>Dim j as Integer</SourceLine>    <SourceLine></SourceLine>    <SourceLine>For i = 1 to 2000</SourceLine>    <SourceLine>For j = 1 to 8</SourceLine>    <SourceLine>MainList.Cell(i,j) = ""</SourceLine>    <SourceLine>gFileReadRecord(i,j) = ""</SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine>MainList.aListRefresh</SourceLine>    <SourceLine></SourceLine>    <SourceLine>KariTotal.Text = ""</SourceLine>    <SourceLine>KasiTotal.Text = ""</SourceLine>    <SourceLine>AllKariTotal.Text = ""</SourceLine>    <SourceLine>AllKasiTotal.Text = ""</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>ReadAccount</ItemName>   <ItemParams>tKamokuString as String,tKubun as Integer</ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>225</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>225</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub ReadAccount(tKamokuString as String,tKubun as Integer)</SourceLine>    <SourceLine>Dim tFolderItem as FolderItem</SourceLine>    <SourceLine>Dim tBinaryInput as BinaryStream</SourceLine>    <SourceLine>Dim tKariDouble as Double</SourceLine>    <SourceLine>Dim tKasiDouble as Double</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Dim tDateString(50) as String</SourceLine>    <SourceLine>Dim tKariKingaku(50) as String</SourceLine>    <SourceLine>Dim tKariKamoku(50) as String</SourceLine>    <SourceLine>Dim tTekiyouString(50) as String</SourceLine>    <SourceLine>Dim tBangouString(50) as String</SourceLine>    <SourceLine>Dim tKasiKamoku(50) as String</SourceLine>    <SourceLine>Dim tKasiKingaku(50) as String</SourceLine>    <SourceLine>Dim tReadKubun(50) as String</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Dim tKamoku(50) as String</SourceLine>    <SourceLine>Dim tTekiyou(50) as String</SourceLine>    <SourceLine>Dim tBangou(50) as String</SourceLine>    <SourceLine>Dim tKari(50) as String</SourceLine>    <SourceLine>Dim tKasi(50) as String</SourceLine>    <SourceLine>Dim tWriteKubun(50) as String</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Dim tKariCount as Integer</SourceLine>    <SourceLine>Dim tKasiCount as Integer</SourceLine>    <SourceLine>Dim tHyouziFlag as Integer</SourceLine>    <SourceLine>Dim tHyouziGyou as Integer</SourceLine>    <SourceLine>Dim tTotalKari as Double</SourceLine>    <SourceLine>Dim tTotalKasi as Double</SourceLine>    <SourceLine>Dim tKamokuFlag as Integer</SourceLine>    <SourceLine>Dim SelectLineGyou as Integer</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine>Dim j as Integer</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tTotalKari = 0</SourceLine>    <SourceLine>tTotalKasi = 0</SourceLine>    <SourceLine>//&#38020;&#36835;&#37728;&#38235;Index&#33652;&#33600;&#33603;&#33675;&#33520;&#36332;&#37036;&#33463;&#33513;</SourceLine>    <SourceLine>tFolderItem = MakeFolder(gBasicPath + "&#36949;&#37334;&#37728;&#38235;&#33638;&#33115;&#33630;")</SourceLine>    <SourceLine>tFolderItem = MakeFolder(tFolderItem.AbsolutePath + LeftB(DateField.Text,4))</SourceLine>    <SourceLine>tFolderItem = GetFolderItem(tFolderItem.AbsolutePath + "&#36949;&#37728;" + LeftB(DateField.Text,4) + "/" + MidB(DateField.Text,7,2))</SourceLine>    <SourceLine>If tFolderItem &lt;&gt; Nil Then</SourceLine>    <SourceLine>tBinaryInput = tFolderItem.OpenAsBinaryFile(False)</SourceLine>    <SourceLine>If tBinaryInput &lt;&gt; Nil Then</SourceLine>    <SourceLine>tBinaryInput.LittleEndian = True</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tHyouziGyou = 1'2</SourceLine>    <SourceLine>While tBinaryInput.EOF = False</SourceLine>    <SourceLine>i = 0</SourceLine>    <SourceLine>tKariDouble = 0</SourceLine>    <SourceLine>tKasiDouble = 0</SourceLine>    <SourceLine>tKariCount = 0</SourceLine>    <SourceLine>tKasiCount = 0</SourceLine>    <SourceLine>Do</SourceLine>    <SourceLine>i = i + 1</SourceLine>    <SourceLine>//&#37882;&#38260;</SourceLine>    <SourceLine>tDateString(i) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>//&#36568;&#38395;&#35808;&#35450;</SourceLine>    <SourceLine>tKariKingaku(i) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>tKariDouble = tKariDouble + ChangeSequence(tKariKingaku(i))</SourceLine>    <SourceLine>//&#36568;&#38395;&#35272;&#38618;&#38100;&#36230;</SourceLine>    <SourceLine>tBinaryInput.Position = tBinaryInput.Position + 5</SourceLine>    <SourceLine>//&#36568;&#38395;&#35272;&#38618;</SourceLine>    <SourceLine>tKariKamoku(i) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>If tKariKamoku(i) &lt;&gt; "" Then</SourceLine>    <SourceLine>tKariCount = tKariCount + 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>//&#37701;&#38774;</SourceLine>    <SourceLine>tTekiyouString(i) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>//&#38100;&#36230;</SourceLine>    <SourceLine>tBangouString(i) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>//&#37341;&#38395;&#35272;&#38618;&#38100;&#36230;</SourceLine>    <SourceLine>tBinaryInput.Position = tBinaryInput.Position + 5</SourceLine>    <SourceLine>//&#37341;&#38395;&#35272;&#38618;</SourceLine>    <SourceLine>tKasiKamoku(i) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>If tKasiKamoku(i) &lt;&gt; "" Then</SourceLine>    <SourceLine>tKasiCount = tKasiCount + 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>//&#37341;&#38395;&#35808;&#35450;</SourceLine>    <SourceLine>tKasiKingaku(i) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>tKasiDouble = tKasiDouble + ChangeSequence(tKasiKingaku(i))</SourceLine>    <SourceLine>//&#35814;&#38314;</SourceLine>    <SourceLine>tReadKubun(i) = tBinaryInput.ReadPString</SourceLine>    <SourceLine>If Len(tReadKubun(i)) = 2 Then</SourceLine>    <SourceLine>//&#38748;&#38133;&#35827;&#35540;&#33088;&#35324;&#36211;</SourceLine>    <SourceLine>tBinaryInput.Position = tBinaryInput.Position + 34</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>//&#35324;&#36211;</SourceLine>    <SourceLine>tBinaryInput.Position = tBinaryInput.Position + 2</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>tReadKubun(i) = Trim(tReadKubun(i))</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If tKamokuFlag = 0 And (tKamokuString = tKariKamoku(i) Or tKamokuString = tKasiKamoku(i)) Then</SourceLine>    <SourceLine>tKamokuFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If tKubun &lt;&gt; 0 Then</SourceLine>    <SourceLine>If Val(tReadKubun(i)) &lt;&gt; tKubun Then</SourceLine>    <SourceLine>tKamokuFlag = 0</SourceLine>    <SourceLine>tKariDouble = 0</SourceLine>    <SourceLine>tKasiDouble = 0</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>Loop Until tKariDouble = tKasiDouble</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>SelectLineGyou = 0</SourceLine>    <SourceLine>If tKamokuFlag = 1 Then</SourceLine>    <SourceLine>If tKariCount = 1 And tKasiCount = 1 Then</SourceLine>    <SourceLine>//&#33360;&#37326;&#33360;</SourceLine>    <SourceLine>j = 0</SourceLine>    <SourceLine>If tKamokuString = tKariKamoku(i) Then</SourceLine>    <SourceLine>j = j + 1</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(j) = tKasiKamoku(i)</SourceLine>    <SourceLine>tTekiyou(j) = tTekiyouString(i)</SourceLine>    <SourceLine>tBangou(j) = tBangouString(i)</SourceLine>    <SourceLine>tKari(j) = tKariKingaku(i)</SourceLine>    <SourceLine>tKasi(j) = "0"</SourceLine>    <SourceLine>tWriteKubun(j) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>If tKamokuString = tKasiKamoku(i) Then</SourceLine>    <SourceLine>'ElseIf tKamokuString = tKasiKamoku(i) Then</SourceLine>    <SourceLine>j = j + 1</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(j) = tKariKamoku(i)</SourceLine>    <SourceLine>tTekiyou(j) = tTekiyouString(i)</SourceLine>    <SourceLine>tBangou(j) = tBangouString(i)</SourceLine>    <SourceLine>tKari(j) = "0"</SourceLine>    <SourceLine>tKasi(j) = tKasiKingaku(i)</SourceLine>    <SourceLine>tWriteKubun(j) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>ElseIf tKariCount &gt; 1 And tKasiCount = 1 Then</SourceLine>    <SourceLine>//&#38305;&#37012;&#37326;&#33360;</SourceLine>    <SourceLine>For j = 1 to i</SourceLine>    <SourceLine>If tKamokuString = tKariKamoku(j) Then</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(SelectLineGyou) = tKasiKamoku(1)</SourceLine>    <SourceLine>tTekiyou(SelectLineGyou) = tTekiyouString(j)</SourceLine>    <SourceLine>tBangou(SelectLineGyou) = tBangouString(j)</SourceLine>    <SourceLine>tKari(SelectLineGyou) = tKariKingaku(j)</SourceLine>    <SourceLine>tKasi(SelectLineGyou) = "0"</SourceLine>    <SourceLine>tWriteKubun(SelectLineGyou) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>If tKamokuString = tKasiKamoku(j) Then</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(SelectLineGyou) = "&#36756;&#36091;"</SourceLine>    <SourceLine>tTekiyou(SelectLineGyou) = tTekiyouString(j)</SourceLine>    <SourceLine>tBangou(SelectLineGyou) = tBangouString(j)</SourceLine>    <SourceLine>tKari(SelectLineGyou) = "0"</SourceLine>    <SourceLine>tKasi(SelectLineGyou) = tKasiKingaku(j)</SourceLine>    <SourceLine>tWriteKubun(SelectLineGyou) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine>ElseIf tKariCount = 1 And tKasiCount &gt; 1 Then</SourceLine>    <SourceLine>//&#33360;&#37326;&#38305;&#37012;</SourceLine>    <SourceLine>For j = 1 to i</SourceLine>    <SourceLine>If tKamokuString = tKariKamoku(j) Then</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(SelectLineGyou) = "&#36756;&#36091;"</SourceLine>    <SourceLine>tTekiyou(SelectLineGyou) = tTekiyouString(j)</SourceLine>    <SourceLine>tBangou(SelectLineGyou) = tBangouString(j)</SourceLine>    <SourceLine>tKari(SelectLineGyou) = tKariKingaku(j)</SourceLine>    <SourceLine>tKasi(SelectLineGyou) = "0"</SourceLine>    <SourceLine>tWriteKubun(SelectLineGyou) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>If tKamokuString = tKasiKamoku(j) Then</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(SelectLineGyou) = tKariKamoku(1)</SourceLine>    <SourceLine>tTekiyou(SelectLineGyou) = tTekiyouString(j)</SourceLine>    <SourceLine>tBangou(SelectLineGyou) = tBangouString(j)</SourceLine>    <SourceLine>tKari(SelectLineGyou) = "0"</SourceLine>    <SourceLine>tKasi(SelectLineGyou) = tKasiKingaku(j)</SourceLine>    <SourceLine>tWriteKubun(SelectLineGyou) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine>ElseIf tKariCount &gt; 1 And tKasiCount &gt; 1 Then</SourceLine>    <SourceLine>//&#38305;&#37012;&#37326;&#38305;&#37012;</SourceLine>    <SourceLine>For j = 1 to i</SourceLine>    <SourceLine>If tKamokuString = tKariKamoku(j) Then</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(SelectLineGyou) = "&#36756;&#36091;"</SourceLine>    <SourceLine>tTekiyou(SelectLineGyou) = tTekiyouString(j)</SourceLine>    <SourceLine>tBangou(SelectLineGyou) = tBangouString(j)</SourceLine>    <SourceLine>tKari(SelectLineGyou) = tKariKingaku(j)</SourceLine>    <SourceLine>tKasi(SelectLineGyou) = "0"</SourceLine>    <SourceLine>tWriteKubun(SelectLineGyou) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>If tKamokuString = tKasiKamoku(j) Then</SourceLine>    <SourceLine>SelectLineGyou = SelectLineGyou + 1</SourceLine>    <SourceLine>tKamoku(SelectLineGyou) = "&#36756;&#36091;"</SourceLine>    <SourceLine>tTekiyou(SelectLineGyou) = tTekiyouString(j)</SourceLine>    <SourceLine>tBangou(SelectLineGyou) = tBangouString(j)</SourceLine>    <SourceLine>tKari(SelectLineGyou) = "0"</SourceLine>    <SourceLine>tKasi(SelectLineGyou) = tKasiKingaku(j)</SourceLine>    <SourceLine>tWriteKubun(SelectLineGyou) = tReadKubun(j)</SourceLine>    <SourceLine>tHyouziFlag = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If tHyouziFlag = 1 Then</SourceLine>    <SourceLine>For j = 1 to SelectLineGyou</SourceLine>    <SourceLine>gFileReadRecord(tHyouziGyou,1) = Right(tDateString(1),5)</SourceLine>    <SourceLine>gFileReadRecord(tHyouziGyou,2) = tKamoku(j)</SourceLine>    <SourceLine>gFileReadRecord(tHyouziGyou,3) = tWriteKubun(j)</SourceLine>    <SourceLine>gFileReadRecord(tHyouziGyou,4) = tTekiyou(j)</SourceLine>    <SourceLine>gFileReadRecord(tHyouziGyou,5) = tBangou(j)</SourceLine>    <SourceLine>gFileReadRecord(tHyouziGyou,6) = SpaceSup(tKari(j),13)</SourceLine>    <SourceLine>tTotalKari = tTotalKari + ChangeSequence(MainList.Cell(tHyouziGyou,5))</SourceLine>    <SourceLine>gFileReadRecord(tHyouziGyou,7) = SpaceSup(tKasi(j),13)</SourceLine>    <SourceLine>tHyouziFlag = 0</SourceLine>    <SourceLine>tHyouziGyou = tHyouziGyou + 1</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>tKamokuFlag = 0</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Wend</SourceLine>    <SourceLine>tBinaryInput.Close</SourceLine>    <SourceLine>KariTotal.Text = Format(tTotalKari,"-,#")</SourceLine>    <SourceLine>KasiTotal.Text = Format(tTotalKasi,"-,#")</SourceLine>    <SourceLine>AllKariTotal.Text = Format(tTotalKari + ChangeSequence(MainList.Cell(1,6)),"-,#")</SourceLine>    <SourceLine>AllKasiTotal.Text = Format(tTotalKasi + ChangeSequence(MainList.Cell(1,7)),"-,#")</SourceLine>    <SourceLine>End IF</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>ClearTransfer</ItemName>   <ItemParams></ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>7</StartSelRow>    <StartSelCol>4</StartSelCol>    <EndSelRow>7</EndSelRow>    <EndSelCol>4</EndSelCol>    <SourceLine>Sub ClearTransfer()</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine></SourceLine>    <SourceLine>For i = 1 to 135</SourceLine>    <SourceLine>gKamoku(i) = ""</SourceLine>    <SourceLine>gKingaku(i,1) = 0</SourceLine>    <SourceLine>gKingaku(i,2) = 0</SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>ReadTransfer</ItemName>   <ItemParams>tDateString as String,tKamokuName as String,tKamokuType as Integer,tKubun as Integer</ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>42</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>42</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub ReadTransfer(tDateString as String,tKamokuName as String,tKamokuType as Integer,tKubun as Integer)</SourceLine>    <SourceLine>//MainList&#33484;&#35050;&#36211;&#38618;&#33481;&#35914;&#33512;&#35194;&#33461;&#33520;&#37884;&#33514;&#33513;</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>Dim tFolderItem as FolderItem</SourceLine>    <SourceLine>Dim tBinaryInput as BinaryStream</SourceLine>    <SourceLine>Dim tReadString as String</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#36257;&#35982;&#33484;&#35914;&#35194;&#33638;&#33115;&#33630;&#33484;FolderItem&#33520;&#37822;&#33513;</SourceLine>    <SourceLine>tFolderItem = MakeFolder(gBasicPath + "&#36949;&#37334;&#37728;&#38235;&#33638;&#33115;&#33630;")</SourceLine>    <SourceLine>tFolderItem = MakeFolder(tFolderItem.AbsolutePath + LeftB(DateField.Text,4))</SourceLine>    <SourceLine>If tKubun = 0 Then</SourceLine>    <SourceLine>tFolderItem = GetFolderItem(tFolderItem.AbsolutePath + "&#35914;&#35194;" + LeftB(tDateString,4) + "/" + MidB(tDateString,7,2))</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>tFolderItem = GetFolderItem(tFolderItem.AbsolutePath + PopupMenu1.Text + "&#35914;&#35194;" + LeftB(tDateString,4) + "/" + MidB(tDateString,7,2))</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//FolderItem&#33450;&#37822;&#33511;&#33514;&#33469;&#33511;</SourceLine>    <SourceLine>If tFolderItem &lt;&gt; Nil Then</SourceLine>    <SourceLine>//&#36949;&#37728;&#33638;&#33115;&#33630;&#33652;&#33600;&#33603;&#33675;&#33520;&#36332;&#37036;&#33463;&#33513;</SourceLine>    <SourceLine>tBinaryInput = tFolderItem.OpenAsBinaryFile(True)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#33652;&#33600;&#33603;&#33675;&#33450;&#35402;&#33455;&#33469;&#33511;</SourceLine>    <SourceLine>If tBinaryInput &lt;&gt; Nil Then</SourceLine>    <SourceLine>tBinaryInput.LittleEndian = True</SourceLine>    <SourceLine>i = 1</SourceLine>    <SourceLine>While tBinaryInput.EOF = False</SourceLine>    <SourceLine>tReadString = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>If tReadString = tKamokuName Then</SourceLine>    <SourceLine>MainList.Cell(1,6) = SpaceSup(Format(Val(Trim(tBinaryInput.ReadPString)),"-,#"),13)</SourceLine>    <SourceLine>MainList.Cell(1,7) = SpaceSup(Format(Val(Trim(tBinaryInput.ReadPString)),"-,#"),13)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If tKamokuType =2 Or tKamokuType = 3 Or tKamokuType = 5 Or tKamokuType = 7 Then</SourceLine>    <SourceLine>MainList.Cell(1,8) = SpaceSup(Format(ABS(ChangeSequence(MainList.Cell(1,6)) - ChangeSequence(MainList.Cell(1,7))),"-,#"),13)</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>MainList.Cell(1,8) = SpaceSup(Format(ChangeSequence(MainList.Cell(1,6)) - ChangeSequence(MainList.Cell(1,7)),"-,#"),13)</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Exit</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>tBinaryInput.Position = tBinaryInput.Position + 67</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Wend</SourceLine>    <SourceLine>tBinaryInput.Close</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>If MidB(tDateString,7,2) = "04" Then</SourceLine>    <SourceLine>MainList.Cell(1,4) = "&#37199;&#33088;&#35578;&#33088;&#35914;&#33088;&#35194;"</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>MainList.Cell(1,4) = "&#37199;&#33088;&#35982;&#33088;&#35914;&#33088;&#35194;"</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>ReadKamoku</ItemName>   <ItemParams></ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>10</StartSelRow>    <StartSelCol>6</StartSelCol>    <EndSelRow>10</EndSelRow>    <EndSelCol>6</EndSelCol>    <SourceLine>Sub ReadKamoku()</SourceLine>    <SourceLine>Dim tFolderItem as FolderItem</SourceLine>    <SourceLine>Dim tBinaryInput as BinaryStream</SourceLine>    <SourceLine>Dim tReadString as String</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine>Dim j as Integer</SourceLine>    <SourceLine></SourceLine>    <SourceLine>i = 1</SourceLine>    <SourceLine>j = 1</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#37701;&#38774;&#37856;&#38757;&#33652;&#33600;&#33603;&#33675;&#33484;&#33440;&#33513;&#36842;&#36746;&#33129;=FolderItem&#33130;&#33520;&#37822;&#33513;</SourceLine>    <SourceLine>tFolderItem = GetFolderItem(gBasicPath + "&#37085;&#37608;:&#35496;&#37608;&#35272;&#38618;")</SourceLine>    <SourceLine>//&#33652;&#33600;&#33603;&#33675;&#33450;&#37302;&#36317;&#33461;&#33476;&#33442;&#33513;&#33129;=FolderItem&#33450;&#37302;&#36317;&#33461;&#33476;&#33442;&#33513;&#33130;&#33480;&#33511;</SourceLine>    <SourceLine>If tFolderItem &lt;&gt; Nil Then</SourceLine>    <SourceLine>//&#33467;&#33484;&#33652;&#33600;&#33603;&#33675;&#33520;&#37831;&#33501;&#36753;&#33451;&#33666;&#33115;&#33640;&#33477;&#35402;&#33453;</SourceLine>    <SourceLine>tBinaryInput = tFolderItem.OpenAsBinaryFile(True)</SourceLine>    <SourceLine>//&#33652;&#33600;&#33603;&#33675;&#33520;&#35402;&#33453;&#33457;&#33478;&#33450;&#33477;&#33451;&#33513;&#33129;=tBinaryInput&#33450;&#37302;&#36317;&#33461;&#33476;&#33442;&#33513;&#33130;&#33480;&#33511;</SourceLine>    <SourceLine>If tBinaryInput &lt;&gt; Nil Then</SourceLine>    <SourceLine>//&#33652;&#33600;&#33603;&#33675;&#33484;&#36293;&#36067;&#33500;&#33477;&#37831;&#33501;&#33474;&#33475;&#33455;&#33513;</SourceLine>    <SourceLine>While tBinaryInput.EOF = False</SourceLine>    <SourceLine>//&#35496;&#37608;&#35272;&#38618;&#33520;ButtonName&#33494;&#37347;&#37884;</SourceLine>    <SourceLine>MainButton.ButtonName(i,j) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>//&#33659;&#33630;&#33683;&#33484;&#36934;&#33520;ButtonColor&#33494;&#37347;&#37884;</SourceLine>    <SourceLine>MainButton.ButtonColor(i,j) = Val(Trim(tBinaryInput.ReadPString)) + 1</SourceLine>    <SourceLine>//&#33618;&#33115;&#33640;&#38100;&#36230;&#33520;ButtonData&#33494;&#37347;&#37884;</SourceLine>    <SourceLine>MainButton.ButtonData1(i,j) = Trim(tBinaryInput.ReadPString)</SourceLine>    <SourceLine>//&#37831;&#33501;&#38130;&#33486;&#33461;</SourceLine>    <SourceLine>tBinaryInput.Position = tBinaryInput.Position + 27</SourceLine>    <SourceLine></SourceLine>    <SourceLine>j = j + 1</SourceLine>    <SourceLine>If j = MainButton.RowCount + 1Then</SourceLine>    <SourceLine>i = i + 1</SourceLine>    <SourceLine>j = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If j = MainButton.RowCount And i = MainButton.ColCount Then</SourceLine>    <SourceLine>Exit</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>Wend</SourceLine>    <SourceLine>tBinaryInput.Close</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>DataSort</ItemName>   <ItemParams>tKamokuType as Integer</ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>70</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>70</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub DataSort(tKamokuType as Integer)</SourceLine>    <SourceLine>Dim tDay1(31) as Integer</SourceLine>    <SourceLine>Dim tDay2(31) as Integer</SourceLine>    <SourceLine>Dim tDayInteger as Integer</SourceLine>    <SourceLine>Dim tLastDay as Integer</SourceLine>    <SourceLine>Dim tFlag as Integer</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine>Dim tTotalKari as Double</SourceLine>    <SourceLine>Dim tTotalKasi as Double</SourceLine>    <SourceLine></SourceLine>    <SourceLine>dim tstring as string</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>//Step.1&#33088;&#35429;&#37882;&#38260;&#33485;&#33442;&#33453;&#33474;&#33475;&#33474;&#33440;&#33513;&#33484;&#33449;&#33096;</SourceLine>    <SourceLine>For i = 1 to 2000</SourceLine>    <SourceLine>If gFileReadRecord(i,4) &lt;&gt; "" Then</SourceLine>    <SourceLine>tDayInteger = Val(RightB(gFileReadRecord(i,1),2))</SourceLine>    <SourceLine>tDay1(tDayInteger) = tDay1(tDayInteger) + 1</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>Exit</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>//Step.2&#33088;&#33467;&#33514;&#33468;&#33514;&#33484;&#37882;&#38260;&#33484;&#37094;&#37802;&#33484;&#33601;&#33640;&#33676;&#33624;&#33520;&#37822;&#33513;</SourceLine>    <SourceLine>tFlag = 0</SourceLine>    <SourceLine>For i = 1 to 31</SourceLine>    <SourceLine>If tDay1(i) &lt;&gt; 0 And tFlag = 0 Then</SourceLine>    <SourceLine>//&#36293;&#36745;&#33481;tDay1&#33450;0&#33481;&#33480;&#33473;&#33469;&#33478;&#33457;&#33515;&#33520;tDay2&#33484;&#37094;&#37802;&#33481;&#35976;&#37608;&#33463;&#33513;</SourceLine>    <SourceLine>tDay2(i) = 1</SourceLine>    <SourceLine>tFlag = 1</SourceLine>    <SourceLine>tLastDay = i</SourceLine>    <SourceLine>ElseIf tDay1(i) &lt;&gt; 0 Then</SourceLine>    <SourceLine>tDay2(i) = tDay1(tLastDay) + tDay2(tLastDay)</SourceLine>    <SourceLine>tLastDay = i</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//Step.3&#33088;&#35429;&#33601;&#33640;&#33676;&#33624;&#33481;&#33638;&#33115;&#33630;&#33520;&#36279;&#33461;&#36254;&#33521;&#33477;&#33442;&#33453;</SourceLine>    <SourceLine>For i = 1 to 2000</SourceLine>    <SourceLine>If gFileReadRecord(i,4) &lt;&gt; "" Then</SourceLine>    <SourceLine>tDayInteger = Val(RightB(gFileReadRecord(i,1),2))</SourceLine>    <SourceLine>MainList.Cell(tDay2(tDayInteger) + 1,1) = gFileReadRecord(i,1)</SourceLine>    <SourceLine>MainList.Cell(tDay2(tDayInteger) + 1,2) = gFileReadRecord(i,2)</SourceLine>    <SourceLine>MainList.Cell(tDay2(tDayInteger) + 1,3) = gFileReadRecord(i,3)</SourceLine>    <SourceLine>MainList.Cell(tDay2(tDayInteger) + 1,4) = gFileReadRecord(i,4)</SourceLine>    <SourceLine>MainList.Cell(tDay2(tDayInteger) + 1,5) = gFileReadRecord(i,5)</SourceLine>    <SourceLine>MainList.Cell(tDay2(tDayInteger) + 1,6) = gFileReadRecord(i,6)</SourceLine>    <SourceLine>MainList.Cell(tDay2(tDayInteger) + 1,7) = gFileReadRecord(i,7)</SourceLine>    <SourceLine>tDay2(tDayInteger) = tDay2(tDayInteger) + 1</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>Exit</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine></SourceLine>    <SourceLine>For i = 2 to 2000</SourceLine>    <SourceLine>If MainList.Cell(i,4) &lt;&gt; "" Then</SourceLine>    <SourceLine>tTotalKari = tTotalKari + ChangeSequence(MainList.Cell(i,6))</SourceLine>    <SourceLine>tTotalKasi = tTotalKasi + ChangeSequence(MainList.Cell(i,7))</SourceLine>    <SourceLine>If tKamokuType =2 Or tKamokuType = 3 Or tKamokuType = 5 Or tKamokuType = 7 Then</SourceLine>    <SourceLine>MainList.Cell(i,8) = SpaceSup(Format(ABS(ChangeSequence(MainList.Cell(i - 1,8)) * (-1) + ChangeSequence(MainList.Cell(i,6)) - ChangeSequence(MainList.Cell(i,7))),"-,#"),13)</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>MainList.Cell(i,8) = SpaceSup(Format(ChangeSequence(MainList.Cell(i - 1,8)) + ChangeSequence(MainList.Cell(i,6)) - ChangeSequence(MainList.Cell(i,7)),"-,#"),13)</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>Exit</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine></SourceLine>    <SourceLine>KariTotal.Text = Format(tTotalKari,"-,#")</SourceLine>    <SourceLine>KasiTotal.Text = Format(tTotalKasi,"-,#")</SourceLine>    <SourceLine>AllKariTotal.Text = Format(tTotalKari + ChangeSequence(MainList.Cell(1,6)),"-,#")</SourceLine>    <SourceLine>AllKasiTotal.Text = Format(tTotalKasi + ChangeSequence(MainList.Cell(1,7)),"-,#")</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <HookInstance>   <ItemName>Close</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Close()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>EnableMenuItems</ItemName>   <ItemSource>    <StartSelRow>2</StartSelRow>    <StartSelCol>28</StartSelCol>    <EndSelRow>2</EndSelRow>    <EndSelCol>28</EndSelCol>    <SourceLine>Sub EnableMenuItems()</SourceLine>    <SourceLine>AppleU.Enabled = True</SourceLine>    <SourceLine>FilePageSetup.Enabled = True</SourceLine>    <SourceLine>Print.Enabled = True</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>CancelClose</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Function CancelClose() As Boolean</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Function</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>Open</ItemName>   <ItemSource>    <StartSelRow>26</StartSelRow>    <StartSelCol>16</StartSelCol>    <EndSelRow>26</EndSelRow>    <EndSelCol>18</EndSelCol>    <SourceLine>Sub Open()</SourceLine>    <SourceLine>//2000.11.2  &#35662;&#37806;&#36510;&#33481;&#33610;&#33676;&#33683;&#33631;&#33115;&#33605;&#33603;&#33683;&#33640;&#33605;&#33520;&#35402;&#33453;&#33510;&#33444;&#33481;&#38351;&#36184;</SourceLine>    <SourceLine>//2002.12.2  &#33676;&#33115;&#33621;&#33115;&#33654;&#33674;&#33683;&#33630;&#33481;&#37326;&#35230;&#33090;</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>Dim tDate as Date</SourceLine>    <SourceLine>Dim tWindow as CalendarWindow</SourceLine>    <SourceLine>Dim tFolderItem   as FolderItem</SourceLine>    <SourceLine>Dim FileReadFrom  as TextInputStream</SourceLine>    <SourceLine>gBasicPath = GetFolderItem("").AbsolutePath</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#33088;&#33652;&#33600;&#33603;&#33675;&#33520;&#35402;&#33453;</SourceLine>    <SourceLine>tFolderItem = MakeFolder(gBasicPath + "&#37085;&#37608;")</SourceLine>    <SourceLine>tFolderItem = GetFolderItem(tFolderItem.AbsolutePath + "&#36019;&#37536;&#33654;&#33674;&#33683;&#33630;&#33115;&#37085;&#37608;")</SourceLine>    <SourceLine>If tFolderItem &lt;&gt; Nil Then //SP</SourceLine>    <SourceLine>FileReadFrom=tFolderItem.OpenAsTextfile</SourceLine>    <SourceLine>IF FileReadFrom &lt;&gt; Nil Then// 2#</SourceLine>    <SourceLine>gPrintSettings = FileReadFrom.ReadAll</SourceLine>    <SourceLine>FileReadFrom.Close</SourceLine>    <SourceLine>ELSE// 2#</SourceLine>    <SourceLine>END IF// 2#</SourceLine>    <SourceLine>END IF//SP</SourceLine>    <SourceLine></SourceLine>    <SourceLine>gVersionString = "&#37261;&#35496;&#37608;&#36019;&#37536; Ver 2.0.3  2000/01/27"</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#36455;&#38768;&#35311;&#36560;&#38588;</SourceLine>    <SourceLine>gCompanyType = "&#38464;&#35982;&#36168;&#35964;&#36560;"</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tDate = New Date</SourceLine>    <SourceLine>DateField.Text = Str(tDate.Year) + "&#37966;" + ZeroSup(tDate.Month,2) + "&#35982;&#36027;&#36317;"</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#33605;&#33602;&#33683;&#33640;&#33605;&#33484;&#35018;&#37493;&#33520;&#37554;&#37038;&#33463;&#33513;</SourceLine>    <SourceLine>if screen(0).width = 640 then</SourceLine>    <SourceLine>left = 0</SourceLine>    <SourceLine>top = 20</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#33665;&#33603;&#33683;&#33674;&#33624;&#33639;&#36745;&#35578;&#35259;</SourceLine>    <SourceLine>MainList.columncount = 8</SourceLine>    <SourceLine>MainList.RowCount = 11</SourceLine>    <SourceLine>MainList.columnwidths "5,12,1,29,6,13,13,13"</SourceLine>    <SourceLine>MainList.columnheaders "&#37882;&#38260;,&#35272;&#38618;,,&#37701;&#33088;&#33088;&#33088;&#38774;,,&#36568;&#38395;,&#37341;&#38395;,&#36451;&#36226;"</SourceLine>    <SourceLine>MainList.columnmasks "@,@,@,@,@,@,@"</SourceLine>    <SourceLine>MainList.DrawUp "r0,l,l,l,l,l,r0"</SourceLine>    <SourceLine>MainList.EditField = MainListField</SourceLine>    <SourceLine>MainList.ScrollBar = MainListScrollBar</SourceLine>    <SourceLine>MainList.EditMode = 1</SourceLine>    <SourceLine>MainList.GetReady</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#33665;&#33603;&#33683;&#33659;&#33630;&#33683;&#36745;&#35578;&#35259;</SourceLine>    <SourceLine>//&#33659;&#33630;&#33683;&#33484;&#35233;&#38897;&#37012;</SourceLine>    <SourceLine>MainButton.ColCount = 9</SourceLine>    <SourceLine>//&#33659;&#33630;&#33683;&#33484;&#36707;&#36211;&#37012;</SourceLine>    <SourceLine>MainButton.RowCount = 15</SourceLine>    <SourceLine>//&#36455;&#38768;&#33652;&#33608;&#33683;&#33639;</SourceLine>    <SourceLine>MainButton.TextFont = "Osaka"</SourceLine>    <SourceLine>//&#36455;&#38768;&#33652;&#33608;&#33683;&#33639;&#33620;&#33603;&#33625;</SourceLine>    <SourceLine>MainButton.TextSize = 10</SourceLine>    <SourceLine>//&#33659;&#33630;&#33683;&#33484;&#35233;&#38301;</SourceLine>    <SourceLine>MainButton.CellWidth = 68</SourceLine>    <SourceLine>//&#33659;&#33630;&#33683;&#33484;&#36707;&#38301;</SourceLine>    <SourceLine>MainButton.CellHeight = 14</SourceLine>    <SourceLine>//&#33659;&#33630;&#33683;&#33484;&#37806;&#33451;&#33088;0=MouseUp&#33520;&#33478;&#33513;&#33088;1=&#35226;&#33521;&#33477;&#33442;&#33513;&#33484;&#33485;&#36845;&#33481;&#33488;&#33478;&#33474;&#33088;2=&#33504;&#33444;&#35050;&#37752;&#35231;&#33459;&#33514;&#33480;&#33442;&#33478;&#38623;&#33511;&#33480;&#33442;</SourceLine>    <SourceLine>MainButton.ButtonType = 1</SourceLine>    <SourceLine>MainButton.BadName = "***"</SourceLine>    <SourceLine></SourceLine>    <SourceLine>ReadKamoku()</SourceLine>    <SourceLine>PopupMenu1.ListIndex = 0</SourceLine>    <SourceLine>MainList.MoveCell(1,1)</SourceLine>    <SourceLine>MainListField.Top = -100</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//=====&#33610;&#33676;&#33683;&#33631;&#33115;&#33605;&#33603;&#33683;&#33640;&#33605;&#33520;&#35402;&#33453;=====</SourceLine>    <SourceLine>tWindow = New CalendarWindow</SourceLine>    <SourceLine>//&#33605;&#33602;&#33683;&#33640;&#33605;&#33484;&#35018;&#37493;&#33520;&#37554;&#37038;&#33463;&#33513;</SourceLine>    <SourceLine>if screen(0).width = 640 then</SourceLine>    <SourceLine>tWindow.Left = Mototyou.Left + Mototyou.Width - tWindow.Width - 1</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>tWindow.Left = Me.Left + Mototyou.Left + 1</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine>tWindow.Top = 50//Me.Top + Me.Height + Mototyou.Top + 1</SourceLine>    <SourceLine>tWindow.ShowModal</SourceLine>    <SourceLine>//====================================</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <MenuHandler>   <ItemName>AppleU</ItemName>   <ItemSource>    <StartSelRow>3</StartSelRow>    <StartSelCol>25</StartSelCol>    <EndSelRow>3</EndSelRow>    <EndSelCol>25</EndSelCol>    <SourceLine>Function Action As Boolean</SourceLine>    <SourceLine>Dim tWindow as AboutWindow</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tWindow = New AboutWindow</SourceLine>    <SourceLine>End Function</SourceLine>   </ItemSource>  </MenuHandler>  <MenuHandler>   <ItemName>Print</ItemName>   <ItemSource>    <StartSelRow>2</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>2</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Function Action As Boolean</SourceLine>    <SourceLine>Dim tWindow as PrintMenu</SourceLine>    <SourceLine>tWindow = New PrintMenu</SourceLine>    <SourceLine>End Function</SourceLine>   </ItemSource>  </MenuHandler>  <MenuHandler>   <ItemName>FilePageSetup</ItemName>   <ItemSource>    <StartSelRow>13</StartSelRow>    <StartSelCol>31</StartSelCol>    <EndSelRow>13</EndSelRow>    <EndSelCol>31</EndSelCol>    <SourceLine>Function Action As Boolean</SourceLine>    <SourceLine>Dim tFolderItem   as FolderItem</SourceLine>    <SourceLine>Dim tTextOutput  as TextOutputStream</SourceLine>    <SourceLine>Dim Pa as PrinterSetup</SourceLine>    <SourceLine>Pa = New PrinterSetup</SourceLine>    <SourceLine>Pa.SetupString = gPrintSettings</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If Pa.PageSetupDialog Then</SourceLine>    <SourceLine>gPrintSettings = Pa.SetupString</SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#33088;&#33652;&#33600;&#33603;&#33675;&#33520;&#35402;&#33453;</SourceLine>    <SourceLine>tFolderItem = MakeFolder(gBasicPath + "&#37085;&#37608;")</SourceLine>    <SourceLine>tFolderItem = GetFolderItem(tFolderItem.AbsolutePath + "&#36019;&#37536;&#33654;&#33674;&#33683;&#33630;&#33115;&#37085;&#37608;")</SourceLine>    <SourceLine>If tFolderItem &lt;&gt; Nil Then //SP</SourceLine>    <SourceLine>tTextOutput=tFolderItem.CreateTextfile</SourceLine>    <SourceLine>IF tTextOutput &lt;&gt; Nil Then// 2#</SourceLine>    <SourceLine>tTextOutput.Write gPrintSettings</SourceLine>    <SourceLine>tTextOutput.Close</SourceLine>    <SourceLine>END IF//// 2#</SourceLine>    <SourceLine>End If//SP</SourceLine>    <SourceLine>END IF</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Function</SourceLine>   </ItemSource>  </MenuHandler> </FormDefn> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>168</ObjSize>  <Superclass>aList</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>MouseDrag</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseDrag(X As Integer, Y As Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>CellChange</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub CellChange(Row as integer, Col as integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>ScrollBar</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>ValueChanged</ItemName>   <ItemSource>    <StartSelRow>3</StartSelRow>    <StartSelCol>21</StartSelCol>    <EndSelRow>3</EndSelRow>    <EndSelCol>21</EndSelCol>    <SourceLine>Sub ValueChanged()</SourceLine>    <SourceLine>MainList.topIndex = MainListScrollBar.value</SourceLine>    <SourceLine>MainListField.Enabled = False</SourceLine>    <SourceLine>MainList.aListRefresh</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>156</ObjSize>  <Superclass>EditField</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>KeyDown</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Function KeyDown(Key As String) As Boolean</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Function</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>192</ObjSize>  <Superclass>CellButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>DropObject</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub DropObject(obj As DragItem)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>Close</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Close()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseClick</ItemName>   <ItemSource>    <StartSelRow>6</StartSelRow>    <StartSelCol>25</StartSelCol>    <EndSelRow>6</EndSelRow>    <EndSelCol>25</EndSelCol>    <SourceLine>Sub MouseClick(Col as Integer,Row as Integer)</SourceLine>    <SourceLine>KamokuName.Text = MainButton.ButtonName(Col,Row)</SourceLine>    <SourceLine>KamokuName.Refresh</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>//&#33665;&#33603;&#33683;&#33674;&#33624;&#33639;&#33614;&#33674;&#33601; 2000</SourceLine>    <SourceLine>MainListClear()</SourceLine>    <SourceLine>//&#35914;&#33512;&#35194;&#33461;&#33638;&#33115;&#33630;&#37831;&#33501;&#36254;&#33501; ?</SourceLine>    <SourceLine>ReadTransfer(DateField.Text,MainButton.ButtonName(Col,Row),MainButton.ButtonColor(Col,Row),PopupMenu1.ListIndex)</SourceLine>    <SourceLine>//&#36949;&#37728;&#33638;&#33115;&#33630;&#37831;&#33501;&#36254;&#33501;&#33129;&#36949;&#37728;&#33638;&#33115;&#33630;&#33449;&#33511;&#36019;&#37536;&#33520;&#36332;&#37036;&#33130;?</SourceLine>    <SourceLine>ReadAccount(MainButton.ButtonName(Col,Row),PopupMenu1.ListIndex)</SourceLine>    <SourceLine>//&#37882;&#38260;&#33455;&#33484;&#33628;&#33115;&#33639; 6031</SourceLine>    <SourceLine>DataSort(MainButton.ButtonColor(Col,Row))</SourceLine>    <SourceLine>//&#33665;&#33603;&#33683;&#33674;&#33624;&#33639;&#33484;&#36184;&#36950;</SourceLine>    <SourceLine>MainList.aListRefresh</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseDown</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseDown(Col as Integer,Row as Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseUp</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseUp(Col as Integer,Row as Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseExit</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseExit()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseEnter</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseEnter()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseMove</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseDrag</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseDrag(X As Integer, Y As Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>MouseMove</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Open</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Open()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>MouseMove</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>4</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>4</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Quit</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>LostFocus</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub LostFocus()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>3</StartSelRow>    <StartSelCol>23</StartSelCol>    <EndSelRow>3</EndSelRow>    <EndSelCol>23</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Dim tWindow as PrintMenu</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tWindow = New PrintMenu</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>11</StartSelRow>    <StartSelCol>17</StartSelCol>    <EndSelRow>11</EndSelRow>    <EndSelCol>17</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Dim tWindow as CalendarWindow</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tWindow = New CalendarWindow</SourceLine>    <SourceLine>//&#33605;&#33602;&#33683;&#33640;&#33605;&#33484;&#35018;&#37493;&#33520;&#37554;&#37038;&#33463;&#33513;</SourceLine>    <SourceLine>if screen(0).width = 640 then</SourceLine>    <SourceLine>tWindow.Left = Mototyou.Left + Mototyou.Width - tWindow.Width - 1</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>tWindow.Left = Me.Left + Mototyou.Left + 1</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine>tWindow.Top = Me.Top + Me.Height + Mototyou.Top + 1</SourceLine>    <SourceLine>tWindow.ShowModal</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>132</ObjSize>  <Superclass>PopupMenu</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Change</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Change()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton2</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">494</PropertyVal>  <PropertyVal Name="Top">7</PropertyVal>  <PropertyVal Name="Width">60</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#35059;&#36348;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>22</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">562</PropertyVal>  <PropertyVal Name="Top">7</PropertyVal>  <PropertyVal Name="Width">60</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#36681;&#38841;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>21</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton3</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">342</PropertyVal>  <PropertyVal Name="Top">7</PropertyVal>  <PropertyVal Name="Width">80</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#33610;&#33676;&#33683;&#33631;&#33115;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>23</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle9</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">228</PropertyVal>  <PropertyVal Name="Top">7</PropertyVal>  <PropertyVal Name="Width">108</PropertyVal>  <PropertyVal Name="Height">21</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">15658734</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>20</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">DateField</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">233</PropertyVal>  <PropertyVal Name="Top">10</PropertyVal>  <PropertyVal Name="Width">96</PropertyVal>  <PropertyVal Name="Height">16</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">0</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>19</ControlIndex> </Control> <Control>  <ControlClass>Canvas</ControlClass>  <ItemName>Canvas</ItemName>  <PropertyVal Name="Name">MainList</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">11</PropertyVal>  <PropertyVal Name="Top">34</PropertyVal>  <PropertyVal Name="Width">602</PropertyVal>  <PropertyVal Name="Height">143</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Backdrop">0</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="UseFocusRing">True</PropertyVal>  <PropertyVal Name="AcceptFocus">False</PropertyVal>  <PropertyVal Name="AcceptTabs">False</PropertyVal>  <ControlIndex>0</ControlIndex> </Control> <Control>  <ControlClass>ScrollBar</ControlClass>  <ItemName>ScrollBar</ItemName>  <PropertyVal Name="Name">MainListScrollBar</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">612</PropertyVal>  <PropertyVal Name="Top">34</PropertyVal>  <PropertyVal Name="Width">16</PropertyVal>  <PropertyVal Name="Height">143</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Minimum">0</PropertyVal>  <PropertyVal Name="Value">0</PropertyVal>  <PropertyVal Name="Maximum">2000</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="LineStep">1</PropertyVal>  <PropertyVal Name="PageStep">10</PropertyVal>  <PropertyVal Name="LiveScroll">True</PropertyVal>  <ControlIndex>1</ControlIndex> </Control> <Control>  <ControlClass>EditField</ControlClass>  <ItemName>EditField</ItemName>  <PropertyVal Name="Name">MainListField</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">False</PropertyVal>  <PropertyVal Name="Left">11</PropertyVal>  <PropertyVal Name="Top">57</PropertyVal>  <PropertyVal Name="Width">80</PropertyVal>  <PropertyVal Name="Height">16</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Border">True</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="ScrollBarHorizontal">False</PropertyVal>  <PropertyVal Name="ScrollBar">False</PropertyVal>  <PropertyVal Name="ScrollBarVertical">False</PropertyVal>  <PropertyVal Name="Styled">False</PropertyVal>  <PropertyVal Name="Password">False</PropertyVal>  <PropertyVal Name="UseFocusRing">True</PropertyVal>  <PropertyVal Name="ReadOnly">False</PropertyVal>  <PropertyVal Name="LimitText">0</PropertyVal>  <PropertyVal Name="AcceptTabs">False</PropertyVal>  <PropertyVal Name="Alignment">0</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="BackColor">16777215</PropertyVal>  <PropertyVal Name="Enabled">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>2</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">11</PropertyVal>  <PropertyVal Name="Top">193</PropertyVal>  <PropertyVal Name="Width">352</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>17</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle2</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">443</PropertyVal>  <PropertyVal Name="Top">193</PropertyVal>  <PropertyVal Name="Width">88</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>16</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">AllKasiTotal</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">440</PropertyVal>  <PropertyVal Name="Top">193</PropertyVal>  <PropertyVal Name="Width">85</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">2</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>15</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle3</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">527</PropertyVal>  <PropertyVal Name="Top">193</PropertyVal>  <PropertyVal Name="Width">86</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>14</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">StaticText1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">156</PropertyVal>  <PropertyVal Name="Top">194</PropertyVal>  <PropertyVal Name="Width">85</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text">&#38877;&#33088;&#33088;&#33088;&#33088;&#35958;</PropertyVal>  <PropertyVal Name="TextAlign">1</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>13</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle4</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">359</PropertyVal>  <PropertyVal Name="Top">193</PropertyVal>  <PropertyVal Name="Width">85</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>12</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">AllKariTotal</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">356</PropertyVal>  <PropertyVal Name="Top">193</PropertyVal>  <PropertyVal Name="Width">85</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">2</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>11</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle5</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">11</PropertyVal>  <PropertyVal Name="Top">176</PropertyVal>  <PropertyVal Name="Width">352</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>10</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle6</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">443</PropertyVal>  <PropertyVal Name="Top">176</PropertyVal>  <PropertyVal Name="Width">88</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>9</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">KasiTotal</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">440</PropertyVal>  <PropertyVal Name="Top">176</PropertyVal>  <PropertyVal Name="Width">85</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">2</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>8</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle7</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">527</PropertyVal>  <PropertyVal Name="Top">176</PropertyVal>  <PropertyVal Name="Width">86</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>7</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">StaticText5</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">160</PropertyVal>  <PropertyVal Name="Top">177</PropertyVal>  <PropertyVal Name="Width">80</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text">&#37782;&#33088;&#35982;&#33088;&#36231;&#33088;&#35958;</PropertyVal>  <PropertyVal Name="TextAlign">1</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>6</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle8</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">359</PropertyVal>  <PropertyVal Name="Top">176</PropertyVal>  <PropertyVal Name="Width">85</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">13434828</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>5</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">KariTotal</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">356</PropertyVal>  <PropertyVal Name="Top">176</PropertyVal>  <PropertyVal Name="Width">85</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">2</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>4</ControlIndex> </Control> <Control>  <ControlClass>Canvas</ControlClass>  <ItemName>Canvas</ItemName>  <PropertyVal Name="Name">MainButton</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">13</PropertyVal>  <PropertyVal Name="Top">230</PropertyVal>  <PropertyVal Name="Width">614</PropertyVal>  <PropertyVal Name="Height">212</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Backdrop">0</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="UseFocusRing">True</PropertyVal>  <PropertyVal Name="AcceptFocus">False</PropertyVal>  <PropertyVal Name="AcceptTabs">False</PropertyVal>  <ControlIndex>3</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">KamokuName</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">13</PropertyVal>  <PropertyVal Name="Top">2</PropertyVal>  <PropertyVal Name="Width">115</PropertyVal>  <PropertyVal Name="Height">27</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">18</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">1</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>18</ControlIndex> </Control> <Control>  <ControlClass>PopupMenu</ControlClass>  <ItemName>PopupMenu</ItemName>  <PropertyVal Name="Name">PopupMenu1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">133</PropertyVal>  <PropertyVal Name="Top">8</PropertyVal>  <PropertyVal Name="Width">83</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka&#33148;&#37785;&#38301;</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="InitialValue"><Hex bytes="31">915391CC0D8D488C7C8ED00D53797374656D0D46697368696E670D8AC7979D</Hex></PropertyVal>  <PropertyVal Name="ListIndex">0</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>24</ControlIndex> </Control></block><block type="Menu" ID="2"> <ObjName>Menu</ObjName> <ObjContainerID>0</ObjContainerID> <EditBounds><Rect left="100" top="100" width="300" height="200"/></EditBounds> <MenuItem>  <ItemSpecialMenu>1</ItemSpecialMenu>  <ItemName></ItemName>  <ItemText></ItemText>  <ItemIndex>-2147483648</ItemIndex>  <ItemShortcut></ItemShortcut>  <ItemHelp></ItemHelp>  <ItemDisabledHelp></ItemDisabledHelp>  <ItemStyle>0</ItemStyle>  <ItemFlags>0</ItemFlags>  <ObjName></ObjName>  <ObjSize>72</ObjSize>  <Superclass>MenuItem</Superclass>  <IsInterface>0</IsInterface>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>AppleU</ItemName>   <ItemText>&#36949;&#37728;&#37317;&#36254;&#33481;&#33474;&#33442;&#33476;...</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>2</ItemSpecialMenu>   <ItemName></ItemName>   <ItemText></ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem> </MenuItem> <MenuItem>  <ItemSpecialMenu>0</ItemSpecialMenu>  <ItemName></ItemName>  <ItemText>&#33652;&#33600;&#33603;&#33675;</ItemText>  <ItemIndex>-2147483648</ItemIndex>  <ItemShortcut></ItemShortcut>  <ItemHelp></ItemHelp>  <ItemDisabledHelp></ItemDisabledHelp>  <ItemStyle>0</ItemStyle>  <ItemFlags>0</ItemFlags>  <ObjName></ObjName>  <ObjSize>72</ObjSize>  <Superclass>MenuItem</Superclass>  <IsInterface>0</IsInterface>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>FilePageSetup</ItemName>   <ItemText>&#38768;&#36486;&#37085;&#37608;...</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>Print</ItemName>   <ItemText>&#35059;&#36348;...</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut>P</ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName></ItemName>   <ItemText>-</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>FileQuit</ItemName>   <ItemText>&#36681;&#38841;</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut>Q</ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>QuitMenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>2</ItemSpecialMenu>   <ItemName></ItemName>   <ItemText></ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem> </MenuItem> <MenuItem>  <ItemSpecialMenu>0</ItemSpecialMenu>  <ItemName></ItemName>  <ItemText>&#38354;&#36695;</ItemText>  <ItemIndex>-2147483648</ItemIndex>  <ItemShortcut></ItemShortcut>  <ItemHelp></ItemHelp>  <ItemDisabledHelp></ItemDisabledHelp>  <ItemStyle>0</ItemStyle>  <ItemFlags>0</ItemFlags>  <ObjName></ObjName>  <ObjSize>72</ObjSize>  <Superclass>MenuItem</Superclass>  <IsInterface>0</IsInterface>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>EditUndo</ItemName>   <ItemText>&#36582;&#33512;&#36801;&#33461;</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut>Z</ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName></ItemName>   <ItemText>-</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>EditCut</ItemName>   <ItemText>&#33610;&#33634;&#33639;</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut>X</ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>EditCopy</ItemName>   <ItemText>&#33618;&#33651;&#33115;</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut>C</ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>EditPaste</ItemName>   <ItemText>&#33657;&#33115;&#33624;&#33639;</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut>V</ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>0</ItemSpecialMenu>   <ItemName>EditClear</ItemName>   <ItemText>&#33614;&#33674;&#33601;</ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem>  <MenuItem>   <ItemSpecialMenu>2</ItemSpecialMenu>   <ItemName></ItemName>   <ItemText></ItemText>   <ItemIndex>-2147483648</ItemIndex>   <ItemShortcut></ItemShortcut>   <ItemHelp></ItemHelp>   <ItemDisabledHelp></ItemDisabledHelp>   <ItemStyle>0</ItemStyle>   <ItemFlags>0</ItemFlags>   <ObjName></ObjName>   <ObjSize>72</ObjSize>   <Superclass>MenuItem</Superclass>   <IsInterface>0</IsInterface>  </MenuItem> </MenuItem> <MenuItem>  <ItemSpecialMenu>2</ItemSpecialMenu>  <ItemName></ItemName>  <ItemText></ItemText>  <ItemIndex>-2147483648</ItemIndex>  <ItemShortcut></ItemShortcut>  <ItemHelp></ItemHelp>  <ItemDisabledHelp></ItemDisabledHelp>  <ItemStyle>0</ItemStyle>  <ItemFlags>0</ItemFlags>  <ObjName></ObjName>  <ObjSize>72</ObjSize>  <Superclass>MenuItem</Superclass>  <IsInterface>0</IsInterface> </MenuItem></block><block type="Module" ID="3"> <ObjName>aList</ObjName> <ObjContainerID>35</ObjContainerID> <EditBounds><Rect left="170" top="57" width="679" height="633"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>1</IsClass> <Interfaces></Interfaces> <ObjName>aList</ObjName> <ObjSize>168</ObjSize> <Superclass>Canvas</Superclass> <IsInterface>0</IsInterface> <Property Flags="0">ColumnCount as integer</Property> <Property Flags="0">ColumnWidth(32) as integer</Property> <Property Flags="0">TopIndex as integer</Property> <Property Flags="0">Cell(2000, 32) as String</Property> <Property Flags="0">Header(32) as String</Property> <Property Flags="0">CurrentRow as integer</Property> <Property Flags="0">ClickPosX as integer</Property> <Property Flags="0">ClickPosY as integer</Property> <Property Flags="0">EditField as EditField</Property> <Property Flags="0">Mask(32) as String</Property> <Property Flags="0">ScrollBar as ScrollBar</Property> <Property Flags="0">EditMode as integer</Property> <Property Flags="0">ColumnDrawUp(32) as String</Property> <Property Flags="0">RowCount as Integer</Property> <Property Flags="0">Ver115 as String</Property> <Method>  <ItemName>ColumnWidths</ItemName>  <ItemParams>s as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>11</StartSelRow>   <StartSelCol>2</StartSelCol>   <EndSelRow>11</EndSelRow>   <EndSelCol>6</EndSelCol>   <SourceLine>Sub ColumnWidths(s as String)</SourceLine>   <SourceLine>dim i as integer // text length</SourceLine>   <SourceLine>dim j as integer // current column</SourceLine>   <SourceLine>dim t as string // current length</SourceLine>   <SourceLine>dim c as string // current character</SourceLine>   <SourceLine></SourceLine>   <SourceLine>j = 1</SourceLine>   <SourceLine>for i = 1 to len(s)</SourceLine>   <SourceLine>c = mid(s, i, 1)</SourceLine>   <SourceLine>if c = "," then</SourceLine>   <SourceLine>ColumnWidth(j) = val(t) + 1</SourceLine>   <SourceLine>t = ""</SourceLine>   <SourceLine>j = j + 1</SourceLine>   <SourceLine>if j &gt; 32 then</SourceLine>   <SourceLine>beep</SourceLine>   <SourceLine>msgbox "error:aList&#33484;&#33610;&#33673;&#33664;&#37012;&#33450;32&#38897;&#33520;&#37556;&#33446;&#33500;&#33461;&#33469;"</SourceLine>   <SourceLine>exit</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>if (asc(c) &gt; asc("9") or asc(c) &lt; asc("0")) then</SourceLine>   <SourceLine>beep</SourceLine>   <SourceLine>msgbox "error:aList&#33484;ColumnWidths&#33477;&#38259;&#37043;&#33480;&#38326;&#36506;&#33450;&#36471;&#37608;&#33459;&#33514;&#33500;&#33461;&#33469;"</SourceLine>   <SourceLine>exit</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>t = t + c</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>ColumnWidth(j) = val(t) + 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>aListRefresh</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>2</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>2</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub aListRefresh()</SourceLine>   <SourceLine>Redraw Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ColumnHeaders</ItemName>  <ItemParams>s as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>11</StartSelRow>   <StartSelCol>2</StartSelCol>   <EndSelRow>11</EndSelRow>   <EndSelCol>6</EndSelCol>   <SourceLine>Sub ColumnHeaders(s as String)</SourceLine>   <SourceLine>dim i as integer // text length</SourceLine>   <SourceLine>dim j as integer // current column</SourceLine>   <SourceLine>dim t as string // current length</SourceLine>   <SourceLine>dim c as string // current character</SourceLine>   <SourceLine></SourceLine>   <SourceLine>j = 1</SourceLine>   <SourceLine>for i = 1 to len(s)</SourceLine>   <SourceLine>c = mid(s, i, 1)</SourceLine>   <SourceLine>if c = "," then</SourceLine>   <SourceLine>Header(j) = t</SourceLine>   <SourceLine>t = ""</SourceLine>   <SourceLine>j = j + 1</SourceLine>   <SourceLine>if j &gt; 32 then</SourceLine>   <SourceLine>beep</SourceLine>   <SourceLine>msgbox "error:aList&#33484;&#33655;&#33634;&#33631;&#33610;&#33673;&#33664;&#37012;&#33450;32&#38897;&#33520;&#37556;&#33446;&#33500;&#33461;&#33469;"</SourceLine>   <SourceLine>exit</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>t = t + c</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>Header(j) = t</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>Redraw</ItemName>  <ItemParams>g as Graphics</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>34</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>34</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Redraw(g as Graphics)</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim j as integer</SourceLine>   <SourceLine>dim ch as integer</SourceLine>   <SourceLine>dim cw as integer</SourceLine>   <SourceLine>dim x as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = g.width -2</SourceLine>   <SourceLine>h = g.height -2</SourceLine>   <SourceLine>ch = g.textheight + 2</SourceLine>   <SourceLine>cw =  g.textheight / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.forecolor = rgb(64, 128, 64)</SourceLine>   <SourceLine>x = 0</SourceLine>   <SourceLine>for i = 1 to ColumnCount</SourceLine>   <SourceLine>x = x + ColumnWidth(i) * cw</SourceLine>   <SourceLine>g.drawline x, 16, x, h</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>RowCount = floor((h-15) / ch)-1</SourceLine>   <SourceLine>select case EditMode</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>for i = 0 to RowCount</SourceLine>   <SourceLine>x = 0</SourceLine>   <SourceLine>for j = 1 to ColumnCount</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if j = ClickPosX and i + TopIndex = ClickPosY then</SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 64)</SourceLine>   <SourceLine>g.fillrect x + 1, i * ch + 16, ColumnWidth(j)  * cw - 1, ch</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.drawstring cell(TopIndex + i, j) , x + 4,  i * ch + ch + 14</SourceLine>   <SourceLine></SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>if (i mod 2) = 0 then</SourceLine>   <SourceLine>g.forecolor = rgb(192, 255, 192)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>g.fillrect x + 1, i * ch + 16, ColumnWidth(j)  * cw - 1, ch</SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.drawstring cell(TopIndex + i, j) , x + 4,  i * ch + ch + 14</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>x = x + ColumnWidth(j) * cw</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case 1</SourceLine>   <SourceLine>for i = 0 to RowCount</SourceLine>   <SourceLine>x = 0</SourceLine>   <SourceLine>for j = 1 to ColumnCount</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if  i + TopIndex = ClickPosY then</SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 64)</SourceLine>   <SourceLine>g.fillrect x + 1, i * ch + 16, ColumnWidth(j)  * cw - 1, ch</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.drawstring cell(TopIndex + i, j) , x + 4,  i * ch + ch + 14</SourceLine>   <SourceLine></SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>if (i mod 2) = 0 then</SourceLine>   <SourceLine>g.forecolor = rgb(192, 255, 192)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>g.fillrect x + 1, i * ch + 16, ColumnWidth(j)  * cw - 1, ch</SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.drawstring cell(TopIndex + i, j) , x + 4,  i * ch + ch + 14</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>x = x + ColumnWidth(j) * cw</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ClickCell</ItemName>  <ItemParams>X as integer, Y as integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>21</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>21</EndSelRow>   <EndSelCol>8</EndSelCol>   <SourceLine>Sub ClickCell(X as integer, Y as integer)</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim t as integer</SourceLine>   <SourceLine>dim ch as integer</SourceLine>   <SourceLine>dim cw as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>cw = Graphics.textheight / 2</SourceLine>   <SourceLine>ch = Graphics.textheight + 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if Y &gt; 16 then</SourceLine>   <SourceLine></SourceLine>   <SourceLine>ClickPosY = (y - 16) / ch + TopIndex</SourceLine>   <SourceLine>for i = 1 to ColumnCount</SourceLine>   <SourceLine>if X &lt; t + ColumnWidth(i) * cw  then</SourceLine>   <SourceLine>ClickPosX = i</SourceLine>   <SourceLine>exit</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>t = t + ColumnWidth(i) * cw</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Redraw Graphics</SourceLine>   <SourceLine>MoveCell ClickPosY, ClickPosX</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MoveCell</ItemName>  <ItemParams>row as integer, column as integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>32</StartSelRow>   <StartSelCol>10</StartSelCol>   <EndSelRow>32</EndSelRow>   <EndSelCol>19</EndSelCol>   <SourceLine>Sub MoveCell(row as integer, column as integer)</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim t as integer</SourceLine>   <SourceLine>dim ch as integer</SourceLine>   <SourceLine>dim cw as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1 to column - 1</SourceLine>   <SourceLine>t = t + ColumnWidth(i)</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>select case EditMode</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>cw = Graphics.textheight / 2</SourceLine>   <SourceLine>ch = Graphics.textheight + 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>EditField.width = ColumnWidth(i) * cw + 1</SourceLine>   <SourceLine>EditField.Left = t * cw + Left</SourceLine>   <SourceLine>EditField.Top = (row - TopIndex) * ch + Top + 16</SourceLine>   <SourceLine></SourceLine>   <SourceLine>CellChange ClickPosY, ClickPosX</SourceLine>   <SourceLine>EditField.Visible = true</SourceLine>   <SourceLine>EditField.Enabled = true</SourceLine>   <SourceLine>If ColumnDrawUp(ClickPosX) = "l" Or ColumnDrawUp(ClickPosX) = "" Then</SourceLine>   <SourceLine>EditField.LimitText = ColumnWidth(Column) - 1</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r0" Then</SourceLine>   <SourceLine>EditField.LimitText = ColumnWidth(Column) - 4</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r1" Then</SourceLine>   <SourceLine>EditField.LimitText = ColumnWidth(Column) - 6</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r2" Then</SourceLine>   <SourceLine>EditField.LimitText = ColumnWidth(Column) - 7</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>EditField.Text = cell(row, column)</SourceLine>   <SourceLine>EditField.SetFocus</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case 1</SourceLine>   <SourceLine>CellChange ClickPosY, 0</SourceLine>   <SourceLine>Redraw Graphics</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ColumnMasks</ItemName>  <ItemParams>s as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>11</StartSelRow>   <StartSelCol>2</StartSelCol>   <EndSelRow>11</EndSelRow>   <EndSelCol>6</EndSelCol>   <SourceLine>Sub ColumnMasks(s as String)</SourceLine>   <SourceLine>dim i as integer // text length</SourceLine>   <SourceLine>dim j as integer // current column</SourceLine>   <SourceLine>dim t as string // current length</SourceLine>   <SourceLine>dim c as string // current character</SourceLine>   <SourceLine></SourceLine>   <SourceLine>j = 1</SourceLine>   <SourceLine>for i = 1 to len(s)</SourceLine>   <SourceLine>c = mid(s, i, 1)</SourceLine>   <SourceLine>if c = "," then</SourceLine>   <SourceLine>Mask(j) = t</SourceLine>   <SourceLine>t = ""</SourceLine>   <SourceLine>j = j + 1</SourceLine>   <SourceLine>if j &gt; 32 then</SourceLine>   <SourceLine>beep</SourceLine>   <SourceLine>msgbox "error:aList&#33484;&#33661;&#33624;&#33614;&#33610;&#33673;&#33664;&#37012;&#33450;32&#38897;&#33520;&#37556;&#33446;&#33500;&#33461;&#33469;"</SourceLine>   <SourceLine>exit</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>t = t + c</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>Mask(j) = t</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>KeyPress</ItemName>  <ItemParams>s as String</ItemParams>  <ItemResult>Boolean</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>66</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>66</EndSelRow>   <EndSelCol>8</EndSelCol>   <SourceLine>Function KeyPress(s as String) As Boolean</SourceLine>   <SourceLine>dim tstring as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Select Case Asc(s)</SourceLine>   <SourceLine>case 28 // up</SourceLine>   <SourceLine>MoveLeft()</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>case 29 // down</SourceLine>   <SourceLine>MoveRight()</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>case 30 // up</SourceLine>   <SourceLine>MoveUp()</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>case 31 // down</SourceLine>   <SourceLine>MoveDown()</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>case 13 // return</SourceLine>   <SourceLine>if Mask(ClickPosX) = "0" then</SourceLine>   <SourceLine>If ColumnDrawUp(ClickPosX) = "l" Or ColumnDrawUp(ClickPosX) = "" Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = EditField.Text</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r0" And ChangeSequence(EditField.Text) &lt;&gt; 0 Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = SpaceSup(Format(ChangeSequence(EditField.Text),"-,#"),ColumnWidth(ClickPosX) - 1)</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r1" And ChangeSequence(EditField.Text) &lt;&gt; 0 Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = SpaceSup(Format(ChangeSequence(EditField.Text),"-,#.0"),ColumnWidth(ClickPosX) - 1)</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r2" And ChangeSequence(EditField.Text) &lt;&gt; 0 Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = SpaceSup(Format(ChangeSequence(EditField.Text),"-,#.00"),ColumnWidth(ClickPosX) - 1)</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = ""</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If Columncount = ClickPosX Then</SourceLine>   <SourceLine>MoveRight()</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>EditField.Text = ""</SourceLine>   <SourceLine>ClickPosX = ClickPosX + 1</SourceLine>   <SourceLine>Editfield.Text = Cell(ClickPosY,ClickPosX)</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>case 3 // enter</SourceLine>   <SourceLine>if Mask(ClickPosX) = "0" then</SourceLine>   <SourceLine>If ColumnDrawUp(ClickPosX) = "l" Or ColumnDrawUp(ClickPosX) = "" Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = EditField.Text</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r0" And ChangeSequence(EditField.Text) &lt;&gt; 0 Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = SpaceSup(Format(ChangeSequence(EditField.Text),"-,#"),ColumnWidth(ClickPosX) - 1)</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r1" And ChangeSequence(EditField.Text) &lt;&gt; 0 Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = SpaceSup(Format(ChangeSequence(EditField.Text),"-,#.0"),ColumnWidth(ClickPosX) - 1)</SourceLine>   <SourceLine>ElseIf ColumnDrawUp(ClickPosX) = "r2" And ChangeSequence(EditField.Text) &lt;&gt; 0 Then</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = SpaceSup(Format(ChangeSequence(EditField.Text),"-,#.00"),ColumnWidth(ClickPosX) - 1)</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>cell(ClickPosY, ClickPosX) = ""</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If Columncount = ClickPosX Then</SourceLine>   <SourceLine>MoveRight()</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>EditField.Text = ""</SourceLine>   <SourceLine>ClickPosX = ClickPosX + 1</SourceLine>   <SourceLine>Editfield.Text = Cell(ClickPosY,ClickPosX)</SourceLine>   <SourceLine>EditField.Top = -100</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>if EditField.Top = -100 then</SourceLine>   <SourceLine>MoveCell ClickPosY, ClickPosX</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>if Mask(ClickPosX) = "@" then</SourceLine>   <SourceLine>return true</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>return false</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Redraw Graphics</SourceLine>   <SourceLine>return false</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetReady</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>2</StartSelRow>   <StartSelCol>58</StartSelCol>   <EndSelRow>2</EndSelRow>   <EndSelCol>58</EndSelCol>   <SourceLine>Sub GetReady()</SourceLine>   <SourceLine>ScrollBar.minimum = 1</SourceLine>   <SourceLine>ScrollBar.maximum = ScrollBar.Maximum - ScrollBar.PageStep</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DrawUp</ItemName>  <ItemParams>tString as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>7</StartSelRow>   <StartSelCol>12</StartSelCol>   <EndSelRow>7</EndSelRow>   <EndSelCol>12</EndSelCol>   <SourceLine>Sub DrawUp(tString as String)</SourceLine>   <SourceLine>dim i as integer // text length</SourceLine>   <SourceLine>dim j as integer // current column</SourceLine>   <SourceLine>dim t as string // current length</SourceLine>   <SourceLine>dim c as string // current character</SourceLine>   <SourceLine></SourceLine>   <SourceLine>j = 1</SourceLine>   <SourceLine>for i = 1 to len(tString)</SourceLine>   <SourceLine>c = mid(tString, i, 1)</SourceLine>   <SourceLine>if c = "," then</SourceLine>   <SourceLine>ColumnDrawUp(j) = t</SourceLine>   <SourceLine>t = ""</SourceLine>   <SourceLine>j = j + 1</SourceLine>   <SourceLine>if j &gt; 32 then</SourceLine>   <SourceLine>beep</SourceLine>   <SourceLine>msgbox "error:aList&#33484;&#33655;&#33634;&#33631;&#33610;&#33673;&#33664;&#37012;&#33450;32&#38897;&#33520;&#37556;&#33446;&#33500;&#33461;&#33469;"</SourceLine>   <SourceLine>exit</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>t = t + c</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>ColumnDrawUp(j) = t</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MoveRight</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MoveRight()</SourceLine>   <SourceLine>if ClickPosX &lt; ColumnCount then</SourceLine>   <SourceLine>ClickPosX = ClickPosX+ 1</SourceLine>   <SourceLine>MoveCell ClickPosY, ClickPosX</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>ClickPosX = 1</SourceLine>   <SourceLine>MoveDown()</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>Editfield.Text = Cell(ClickPosY,ClickPosX)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MoveLeft</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MoveLeft()</SourceLine>   <SourceLine>if ClickPosX &gt; 1 then</SourceLine>   <SourceLine>ClickPosX = ClickPosX - 1</SourceLine>   <SourceLine>MoveCell ClickPosY, ClickPosX</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>ClickPosX = ColumnCount</SourceLine>   <SourceLine>MoveUp()</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>Editfield.Text = Cell(ClickPosY,ClickPosX)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MoveUp</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>10</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>11</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MoveUp()</SourceLine>   <SourceLine>if ClickPosY &gt; 1 then</SourceLine>   <SourceLine>ClickPosY = ClickPosY - 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>if ClickPosY &lt; topIndex then</SourceLine>   <SourceLine>topIndex = ClickPosY</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>ScrollBar.value = topIndex</SourceLine>   <SourceLine>//MainListEditField.Enabled = False</SourceLine>   <SourceLine>Refresh</SourceLine>   <SourceLine>MoveCell ClickPosY, ClickPosX</SourceLine>   <SourceLine>Editfield.Text = Cell(ClickPosY,ClickPosX)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MoveDown</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>10</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>10</EndSelRow>   <EndSelCol>8</EndSelCol>   <SourceLine>Sub MoveDown()</SourceLine>   <SourceLine>if ClickPosX &lt; 300 then</SourceLine>   <SourceLine>ClickPosY = ClickPosY + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>if ClickPosY &gt; topIndex + rowCount then</SourceLine>   <SourceLine>topIndex = ClickPosY - rowCount</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>ScrollBar.value = topIndex</SourceLine>   <SourceLine>//MainListEditField.Enabled = False</SourceLine>   <SourceLine>Refresh</SourceLine>   <SourceLine>MoveCell ClickPosY, ClickPosX</SourceLine>   <SourceLine>Editfield.Text = Cell(ClickPosY,ClickPosX)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ChangeSequence</ItemName>  <ItemParams>tString as String</ItemParams>  <ItemResult>Double</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>8</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>8</EndSelRow>   <EndSelCol>46</EndSelCol>   <SourceLine>Function ChangeSequence(tString as String) As Double</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#33610;&#33683;&#33661;&#33484;&#36268;&#33462;&#33473;&#33469;&#37012;&#36506;&#38326;&#36506;&#38897;&#33520;Double&#33481;&#33461;&#33476;&#38356;&#33463;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;String</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;Double</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/07/03(Fri)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tReturnDouble as Double</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tReturnDouble = Val(RemoveString(tString,","))</SourceLine>   <SourceLine>Return tReturnDouble</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>SpaceSup</ItemName>  <ItemParams>tNumerical as String,tKeta as Integer</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>14</StartSelCol>   <EndSelRow>6</EndSelRow>   <EndSelCol>14</EndSelCol>   <SourceLine>Function SpaceSup(tNumerical as String,tKeta as Integer) As String</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = "                                                                                                                                                      " + tNumerical</SourceLine>   <SourceLine>tString = RightB(tString,tKeta)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>RemoveString</ItemName>  <ItemParams>tString as String,tRemoveString as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>12</StartSelRow>   <StartSelCol>42</StartSelCol>   <EndSelRow>12</EndSelRow>   <EndSelCol>42</EndSelCol>   <SourceLine>Function RemoveString(tString as String,tRemoveString as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#38326;&#36506;&#38897;&#33449;&#33511;&#33089;&#36471;&#37608;&#33459;&#33514;&#33469;&#38326;&#36506;&#35016;&#35407;&#33520;&#36582;&#33512;&#36719;&#33463;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#38326;&#36506;&#38897;&#33089;&#38326;&#36506;&#38897;&#33449;&#33511;&#36582;&#33512;&#36764;&#33451;&#33469;&#33442;&#38326;&#36506;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#36582;&#33512;&#36764;&#33449;&#33514;&#33469;&#38326;&#36506;&#38897;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/--/--(---)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/09/23(Wed)&#33088;&#33457;&#33484;&#33618;&#33665;&#33683;&#33639;&#33520;&#38260;&#33455;&#33469;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine>Dim tReturnString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tReturnString = ""</SourceLine>   <SourceLine>For i = 1 to LenB(tString)</SourceLine>   <SourceLine>tReturnString = tReturnString + Y_NthField(tString,tRemoveString,i)</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tReturnString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Hook>  <ItemName>CellChange</ItemName>  <ItemParams>Row as integer, Col as integer</ItemParams>  <ItemResult></ItemResult> </Hook> <HookInstance>  <ItemName>Close</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Close()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseExit</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseExit()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseEnter</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseEnter()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseMove</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDrag</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseDrag(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Open</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>13</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>17</EndSelCol>   <SourceLine>Sub Open()</SourceLine>   <SourceLine>Graphics.textfont="Osaka&#33148;&#37785;&#38301;"</SourceLine>   <SourceLine>TopIndex = 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseUp</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseUp(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDown</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function MouseDown(X As Integer, Y As Integer) As Boolean</SourceLine>   <SourceLine>ClickCell X, Y</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Paint</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>46</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Paint(g As Graphics)</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim j as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine>dim ch as integer</SourceLine>   <SourceLine>dim cw as integer</SourceLine>   <SourceLine>dim x as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>w = g.width -2</SourceLine>   <SourceLine>h = g.height -2</SourceLine>   <SourceLine>cw = g.textheight / 2</SourceLine>   <SourceLine>ch = g.textheight + 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.drawline 1, 15, 1, 1 // header leftline</SourceLine>   <SourceLine>g.drawline 1, 1, w, 1  // header topline</SourceLine>   <SourceLine>g.fillrect 1, 16, w, h - 16</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.forecolor = rgb(184, 184, 184)</SourceLine>   <SourceLine>g.drawline w, 1, w, 14</SourceLine>   <SourceLine>g.drawline w, 14, 1, 14</SourceLine>   <SourceLine></SourceLine>   <SourceLine>x = 0</SourceLine>   <SourceLine>for i = 1 to ColumnCount</SourceLine>   <SourceLine>x = x + ColumnWidth(i) * cw</SourceLine>   <SourceLine>g.forecolor = rgb(64, 128, 64)</SourceLine>   <SourceLine>g.drawline x, 1, x, 15</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.drawline x+1, 1, x+1, 15</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 0) </SourceLine>   <SourceLine>g.drawrect 0, 0, g.width-1, g.height-1 // frame</SourceLine>   <SourceLine>g.drawline 0, 15, w, 15 // header underline</SourceLine>   <SourceLine></SourceLine>   <SourceLine>x = 0</SourceLine>   <SourceLine>for i = 1 to ColumnCount</SourceLine>   <SourceLine>g.drawstring Header(i), x + 4, 12 </SourceLine>   <SourceLine>x = x + ColumnWidth(i) * cw</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>Redraw g</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance></block><block type="Window" ID="4"> <ObjName>AboutWindow</ObjName> <ObjContainerID>34</ObjContainerID> <EditBounds><Rect left="0" top="0" width="0" height="0"/></EditBounds> <EditSplit>-1000</EditSplit> <LastPositionH>451</LastPositionH> <LastPositionV>383</LastPositionV> <PropertyVal Name="Name">AboutWindow</PropertyVal> <PropertyVal Name="Frame">4</PropertyVal> <PropertyVal Name="HasBackColor">True</PropertyVal> <PropertyVal Name="BackColor">16777215</PropertyVal> <PropertyVal Name="Backdrop">0</PropertyVal> <PropertyVal Name="Title"></PropertyVal> <PropertyVal Name="Visible">True</PropertyVal> <PropertyVal Name="FullScreen">False</PropertyVal> <PropertyVal Name="MenuBarVisible">True</PropertyVal> <PropertyVal Name="CloseBox">False</PropertyVal> <PropertyVal Name="GrowIcon">False</PropertyVal> <PropertyVal Name="ZoomIcon">False</PropertyVal> <PropertyVal Name="BalloonHelp"></PropertyVal> <PropertyVal Name="MacProcID">0</PropertyVal> <PropertyVal Name="Placement">0</PropertyVal> <PropertyVal Name="Width">300</PropertyVal> <PropertyVal Name="Height">300</PropertyVal> <PropertyVal Name="MinWidth">64</PropertyVal> <PropertyVal Name="MinHeight">64</PropertyVal> <PropertyVal Name="MaxWidth">32000</PropertyVal> <PropertyVal Name="MaxHeight">32000</PropertyVal> <FormDefn>  <ObjName>AboutWindow</ObjName>  <ObjSize>120</ObjSize>  <Superclass>Window</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Open</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>26</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>26</EndSelCol>    <SourceLine>Sub Open()</SourceLine>    <SourceLine>AppNameText.Text =Mototyou.Title</SourceLine>    <SourceLine>VerText.Text = gVersionString</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </FormDefn> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Canvas</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>MouseDown</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Function MouseDown(X As Integer, Y As Integer) As Boolean</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Function</SourceLine>   </ItemSource>  </HookInstance>  <HookInstance>   <ItemName>Paint</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Paint(g As Graphics)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>MouseMove</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>5</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>5</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Close</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>MouseMove</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <Control>  <ControlClass>Canvas</ControlClass>  <ItemName>Canvas</ItemName>  <PropertyVal Name="Name">Canvas1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">75</PropertyVal>  <PropertyVal Name="Top">165</PropertyVal>  <PropertyVal Name="Width">146</PropertyVal>  <PropertyVal Name="Height">64</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Backdrop">0</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="UseFocusRing">True</PropertyVal>  <PropertyVal Name="AcceptFocus">False</PropertyVal>  <PropertyVal Name="AcceptTabs">False</PropertyVal>  <ControlIndex>0</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">StaticText1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">50</PropertyVal>  <PropertyVal Name="Top">124</PropertyVal>  <PropertyVal Name="Width">200</PropertyVal>  <PropertyVal Name="Height">18</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text">Norizuki Industrial Arts Co.,Ltd.</PropertyVal>  <PropertyVal Name="TextAlign">0</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>1</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">AppNameText</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">50</PropertyVal>  <PropertyVal Name="Top">36</PropertyVal>  <PropertyVal Name="Width">200</PropertyVal>  <PropertyVal Name="Height">35</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">18</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">1</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>5</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">50</PropertyVal>  <PropertyVal Name="Top">247</PropertyVal>  <PropertyVal Name="Width">200</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">OK</PropertyVal>  <PropertyVal Name="Default">True</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>2</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">StaticText3</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">50</PropertyVal>  <PropertyVal Name="Top">142</PropertyVal>  <PropertyVal Name="Width">200</PropertyVal>  <PropertyVal Name="Height">16</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text">System&#35402;&#38061;</PropertyVal>  <PropertyVal Name="TextAlign">1</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>3</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">VerText</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">50</PropertyVal>  <PropertyVal Name="Top">76</PropertyVal>  <PropertyVal Name="Width">200</PropertyVal>  <PropertyVal Name="Height">16</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">1</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>4</ControlIndex> </Control></block><block type="Module" ID="6"> <ObjName>DateField</ObjName> <ObjContainerID>35</ObjContainerID> <EditBounds><Rect left="96" top="348" width="939" height="733"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>1</IsClass> <Interfaces></Interfaces> <ObjName>DateField</ObjName> <ObjSize>185</ObjSize> <Superclass>EditField</Superclass> <IsInterface>0</IsInterface> <Property Flags="0">year as integer</Property> <Property Flags="0">month as integer</Property> <Property Flags="0">day as integer</Property> <Property Flags="0">weekDay as integer</Property> <Property Flags="0">date as date</Property> <Property Flags="0">format as string</Property> <Property Flags="0">currentPos as integer</Property> <Property Flags="0">RedrawFlg as boolean</Property> <Method>  <ItemName>redraw</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>16</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>16</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub redraw()</SourceLine>   <SourceLine>RedrawFlg = true</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Text = format(Year, "0000") + "/" + format(Month, "00") + "/" + format(Day, "00") </SourceLine>   <SourceLine>select case currentPos</SourceLine>   <SourceLine>case 1</SourceLine>   <SourceLine>me.selstart = 0</SourceLine>   <SourceLine>me.sellength = 4</SourceLine>   <SourceLine>case 2</SourceLine>   <SourceLine>me.selstart = 5</SourceLine>   <SourceLine>me.sellength = 2</SourceLine>   <SourceLine>case 3</SourceLine>   <SourceLine>me.selstart = 8</SourceLine>   <SourceLine>me.sellength = 2</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>RedrawFlg = false</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>Inc</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>13</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>13</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Inc()</SourceLine>   <SourceLine>select case currentPos</SourceLine>   <SourceLine>case 1//Year</SourceLine>   <SourceLine>IncYear()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case 2//Month</SourceLine>   <SourceLine>IncMonth()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case 3//Day</SourceLine>   <SourceLine>IncDay()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>Redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>Dec</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>13</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>13</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Dec()</SourceLine>   <SourceLine>select case currentPos</SourceLine>   <SourceLine>case 1//Year</SourceLine>   <SourceLine>DecYear()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case 2//Month</SourceLine>   <SourceLine>DecMonth()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case 3//Day</SourceLine>   <SourceLine>DecDay()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>Redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IsLeapYear</ItemName>  <ItemParams></ItemParams>  <ItemResult>Boolean</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>4</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>4</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function IsLeapYear() As Boolean</SourceLine>   <SourceLine>//&#33610;&#33676;&#33683;&#33639;&#37966;&#33450;&#35163;&#37966;&#33480;&#33511;True</SourceLine>   <SourceLine>return (Year mod 4 = 0) and ((Year mod 100 &lt;&gt; 0) or (Year mod 400 = 0))</SourceLine>   <SourceLine>//1920/1/1 Thursday</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetDaysOfMonth</ItemName>  <ItemParams></ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>4</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>4</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function GetDaysOfMonth() As Integer</SourceLine>   <SourceLine>dim days as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33467;&#33484;&#35982;&#33484;&#37882;&#37012;&#33520;&#38356;&#33463;</SourceLine>   <SourceLine>days = val(Y_NthField("31,28,31,30,31,30,31,31,30,31,30,31", ",",month))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35163;&#37966;&#33480;&#33511;&#33361;&#35982;&#33481;&#33360;&#35265;&#36442;</SourceLine>   <SourceLine>if (month = 2) and IsLeapYear then</SourceLine>   <SourceLine>days = days + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>return days</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecMonth</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>5</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>5</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub DecMonth()</SourceLine>   <SourceLine>Month = Month - 1</SourceLine>   <SourceLine>if Month = 0 then</SourceLine>   <SourceLine>DecYear()</SourceLine>   <SourceLine>Month = 12</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecDay</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub DecDay()</SourceLine>   <SourceLine>Day = Day - 1</SourceLine>   <SourceLine>if Day = 0 then</SourceLine>   <SourceLine>DecMonth()</SourceLine>   <SourceLine>Day = GetDaysOfMonth()</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IncMonth</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>6</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub IncMonth()</SourceLine>   <SourceLine>Month = Month + 1</SourceLine>   <SourceLine>if Month = 13 then</SourceLine>   <SourceLine>Month = 1</SourceLine>   <SourceLine>IncYear()</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IncDay</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>6</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub IncDay()</SourceLine>   <SourceLine>Day = Day + 1</SourceLine>   <SourceLine>if Day &gt; GetDaysOfMonth() then</SourceLine>   <SourceLine>Day = 1</SourceLine>   <SourceLine>IncMonth()</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IncYear</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>5</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>5</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub IncYear()</SourceLine>   <SourceLine>Year = Year + 1</SourceLine>   <SourceLine>if Year &gt; 2100 then </SourceLine>   <SourceLine>Year = 2100</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecYear</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>11</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>11</EndSelCol>   <SourceLine>Sub DecYear()</SourceLine>   <SourceLine>Year = Year - 1</SourceLine>   <SourceLine>if Year &lt; 1920 then </SourceLine>   <SourceLine>Year = 1920</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Hook>  <ItemName>EnterField</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult> </Hook> <HookInstance>  <ItemName>LostFocus</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub LostFocus()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>TextChange</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub TextChange()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>KeyDown</ItemName>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>10</EndSelCol>   <SourceLine>Function KeyDown(Key As String) As Boolean</SourceLine>   <SourceLine>select case key</SourceLine>   <SourceLine>case chr(29)</SourceLine>   <SourceLine>currentPos = currentPos + 1</SourceLine>   <SourceLine>if currentPos &gt; 3 then</SourceLine>   <SourceLine>currentPos = 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case chr(28)</SourceLine>   <SourceLine>currentPos = currentPos - 1</SourceLine>   <SourceLine>if currentPos &lt; 1 then</SourceLine>   <SourceLine>currentPos = 3</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case chr(30)</SourceLine>   <SourceLine>Inc()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>case chr(31)</SourceLine>   <SourceLine>Dec()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if Key &lt; "0" or Key &gt; "9" then</SourceLine>   <SourceLine>redraw</SourceLine>   <SourceLine>return true</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>select case currentPos</SourceLine>   <SourceLine>case 1</SourceLine>   <SourceLine>case 2</SourceLine>   <SourceLine>case 3</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>SelChange</ItemName>  <ItemSource>   <StartSelRow>5</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>11</EndSelRow>   <EndSelCol>6</EndSelCol>   <SourceLine>Sub SelChange()</SourceLine>   <SourceLine>if RedrawFlg = true then</SourceLine>   <SourceLine>return</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if me.selstart &lt; 4 then</SourceLine>   <SourceLine>currentPos = 1</SourceLine>   <SourceLine>elseif me.selstart &lt; 8 then</SourceLine>   <SourceLine>currentPos = 2</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>currentPos = 3</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>GotFocus</ItemName>  <ItemSource>   <StartSelRow>2</StartSelRow>   <StartSelCol>10</StartSelCol>   <EndSelRow>2</EndSelRow>   <EndSelCol>10</EndSelCol>   <SourceLine>Sub GotFocus()</SourceLine>   <SourceLine>redraw</SourceLine>   <SourceLine>EnterField</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Open</ItemName>  <ItemSource>   <StartSelRow>9</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>9</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Open()</SourceLine>   <SourceLine>dim s as string</SourceLine>   <SourceLine></SourceLine>   <SourceLine>me.date = new date</SourceLine>   <SourceLine>Year = date.Year</SourceLine>   <SourceLine>Month = date.Month</SourceLine>   <SourceLine>Day = date.Day</SourceLine>   <SourceLine>currentPos = 3</SourceLine>   <SourceLine>redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance></block><block type="Window" ID="9"> <ObjName>MsgDlg</ObjName> <ObjContainerID>34</ObjContainerID> <EditBounds><Rect left="95" top="75" width="545" height="405"/></EditBounds> <EditSplit>181</EditSplit> <LastPositionH>97</LastPositionH> <LastPositionV>89</LastPositionV> <PropertyVal Name="Name">MsgDlg</PropertyVal> <PropertyVal Name="Frame">2</PropertyVal> <PropertyVal Name="HasBackColor">False</PropertyVal> <PropertyVal Name="BackColor">16777215</PropertyVal> <PropertyVal Name="Backdrop">0</PropertyVal> <PropertyVal Name="Title">Untitled</PropertyVal> <PropertyVal Name="Visible">False</PropertyVal> <PropertyVal Name="FullScreen">False</PropertyVal> <PropertyVal Name="MenuBarVisible">True</PropertyVal> <PropertyVal Name="CloseBox">False</PropertyVal> <PropertyVal Name="GrowIcon">False</PropertyVal> <PropertyVal Name="ZoomIcon">False</PropertyVal> <PropertyVal Name="BalloonHelp"></PropertyVal> <PropertyVal Name="MacProcID">0</PropertyVal> <PropertyVal Name="Placement">0</PropertyVal> <PropertyVal Name="Width">364</PropertyVal> <PropertyVal Name="Height">111</PropertyVal> <PropertyVal Name="MinWidth">64</PropertyVal> <PropertyVal Name="MinHeight">64</PropertyVal> <PropertyVal Name="MaxWidth">32000</PropertyVal> <PropertyVal Name="MaxHeight">32000</PropertyVal> <FormDefn>  <ObjName>MsgDlg</ObjName>  <ObjSize>132</ObjSize>  <Superclass>Window</Superclass>  <IsInterface>0</IsInterface>  <Property Flags="0">QuitMode as String</Property>  <Property Flags="0">DialogMode as String</Property>  <Property Flags="0">IconMode as string</Property>  <Method>   <ItemName>SetMode</ItemName>   <ItemParams>tMode as string</ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>23</StartSelRow>    <StartSelCol>46</StartSelCol>    <EndSelRow>23</EndSelRow>    <EndSelCol>46</EndSelCol>    <SourceLine>Sub SetMode(tMode as string)</SourceLine>    <SourceLine>if Y_InStr(1,tMode, "&#38363;&#37302;")&lt;&gt;0 then</SourceLine>    <SourceLine>MessageCap.text = "&#38351;&#36184;&#37856;&#38757;&#33520;&#38363;&#37302;&#33461;&#33476;&#36681;&#38841;&#33461;&#33500;&#33463;&#33449;&#33096;"</SourceLine>    <SourceLine>DialogMode = "Save"</SourceLine>    <SourceLine>IconMode="Stop"</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine></SourceLine>    <SourceLine>if Y_InStr(1,tMode, "&#37517;&#35027;")&lt;&gt;0 then</SourceLine>    <SourceLine>IconMode="Note"</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine></SourceLine>    <SourceLine>if Y_InStr(1,tMode, "&#35960;&#36240;")&lt;&gt;0 then</SourceLine>    <SourceLine>IconMode="Caution"</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine></SourceLine>    <SourceLine>if Y_InStr(1,tMode, "&#37602;&#36478;")&lt;&gt;0 then</SourceLine>    <SourceLine>IconMode="Stop"</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine></SourceLine>    <SourceLine>if Y_InStr(1,tMode, "OK")&lt;&gt;0 then</SourceLine>    <SourceLine>DialogMode = "OK"</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine></SourceLine>    <SourceLine>if Y_InStr(1,tMode, "Cancel")&lt;&gt;0 or Y_InStr(1,tMode, "&#33612;&#33667;&#33683;&#33626;&#33675;")&lt;&gt;0 then</SourceLine>    <SourceLine>DialogMode = "OKCancel"</SourceLine>    <SourceLine>end if</SourceLine>    <SourceLine></SourceLine>    <SourceLine>select case DialogMode</SourceLine>    <SourceLine>case "&#38363;&#37302;"</SourceLine>    <SourceLine>button(0).caption ="&#38363;&#37302;"</SourceLine>    <SourceLine>button(1).caption ="&#33612;&#33667;&#33683;&#33626;&#33675;"</SourceLine>    <SourceLine>button(2).caption ="&#38363;&#37302;&#33461;&#33480;&#33442;"</SourceLine>    <SourceLine>button(0).visible = true</SourceLine>    <SourceLine>button(1).visible = true</SourceLine>    <SourceLine>button(2).visible = true</SourceLine>    <SourceLine>case "OK"</SourceLine>    <SourceLine>button(0).caption ="OK"</SourceLine>    <SourceLine>button(0).visible = true</SourceLine>    <SourceLine>button(1).visible = false</SourceLine>    <SourceLine>button(2).visible = false</SourceLine>    <SourceLine>case "OKCancel"</SourceLine>    <SourceLine>button(0).caption ="OK"</SourceLine>    <SourceLine>button(1).caption ="&#33612;&#33667;&#33683;&#33626;&#33675;"</SourceLine>    <SourceLine>button(0).visible = true</SourceLine>    <SourceLine>button(1).visible = true</SourceLine>    <SourceLine>button(2).visible = false</SourceLine>    <SourceLine>end select</SourceLine>    <SourceLine>visible = true</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>SetMessage</ItemName>   <ItemParams>tMessage as String</ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>2</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>2</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub SetMessage(tMessage as String)</SourceLine>    <SourceLine>MessageCap.text = tMessage</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <HookInstance>   <ItemName>Open</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Open()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </FormDefn> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>32</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>32</EndSelCol>    <SourceLine>Sub Action(Index As Integer)</SourceLine>    <SourceLine>QuitMode = Button(Index).caption</SourceLine>    <SourceLine>hide</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Canvas</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Paint</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>20</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>20</EndSelCol>    <SourceLine>Sub Paint(g As Graphics)</SourceLine>    <SourceLine>select case IconMode</SourceLine>    <SourceLine>case "Note"</SourceLine>    <SourceLine>g.DrawNoteIcon 0,0</SourceLine>    <SourceLine>case "Caution"</SourceLine>    <SourceLine>g.DrawCautionIcon 0,0</SourceLine>    <SourceLine>case "Stop"</SourceLine>    <SourceLine>g.DrawStopIcon 0,0</SourceLine>    <SourceLine>end select</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">Button</PropertyVal>  <PropertyVal Name="Index">0</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">289</PropertyVal>  <PropertyVal Name="Top">78</PropertyVal>  <PropertyVal Name="Width">60</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#38363;&#37302;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>0</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">Button</PropertyVal>  <PropertyVal Name="Index">1</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">171</PropertyVal>  <PropertyVal Name="Top">78</PropertyVal>  <PropertyVal Name="Width">84</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#33612;&#33667;&#33683;&#33626;&#33675;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>0</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">MessageCap</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">59</PropertyVal>  <PropertyVal Name="Top">13</PropertyVal>  <PropertyVal Name="Width">290</PropertyVal>  <PropertyVal Name="Height">50</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text">SetMode "&#38363;&#37302;,&#35960;&#36240;,&#37602;&#36478;,&#37517;&#35027;,OK,&#33612;&#33667;&#33683;&#33626;&#33675;" SetMessage "&#38236;&#36518;&#33461;&#33469;&#33442;&#37856;&#38757;"  / ShowModal / QuitMode</PropertyVal>  <PropertyVal Name="TextAlign">0</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">True</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>1</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">Button</PropertyVal>  <PropertyVal Name="Index">2</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">27</PropertyVal>  <PropertyVal Name="Top">78</PropertyVal>  <PropertyVal Name="Width">88</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#38363;&#37302;&#33461;&#33480;&#33442;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>0</ControlIndex> </Control> <Control>  <ControlClass>Canvas</ControlClass>  <ItemName>Canvas</ItemName>  <PropertyVal Name="Name">IconBox</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">13</PropertyVal>  <PropertyVal Name="Top">13</PropertyVal>  <PropertyVal Name="Width">32</PropertyVal>  <PropertyVal Name="Height">32</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Backdrop">0</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="UseFocusRing">True</PropertyVal>  <PropertyVal Name="AcceptFocus">False</PropertyVal>  <PropertyVal Name="AcceptTabs">False</PropertyVal>  <ControlIndex>2</ControlIndex> </Control></block><block type="Module" ID="10"> <ObjName>Spin</ObjName> <ObjContainerID>35</ObjContainerID> <EditBounds><Rect left="238" top="118" width="742" height="535"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>1</IsClass> <Interfaces></Interfaces> <ObjName>Spin</ObjName> <ObjSize>124</ObjSize> <Superclass>Canvas</Superclass> <IsInterface>0</IsInterface> <Property Flags="0">value as integer</Property> <Property Flags="0">minimum as integer</Property> <Property Flags="0">maximum as integer</Property> <Property Flags="0">stepValue as integer</Property> <Method>  <ItemName>redraw</ItemName>  <ItemParams>g as graphics</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>32</StartSelRow>   <StartSelCol>32</StartSelCol>   <EndSelRow>32</EndSelRow>   <EndSelCol>32</EndSelCol>   <SourceLine>Sub redraw(g as graphics)</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = g.width -1</SourceLine>   <SourceLine>h = g.height -1</SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.drawline 1, 0, w - 1, 0</SourceLine>   <SourceLine>g.drawline w, 1, w, h - 1</SourceLine>   <SourceLine>g.drawline w - 1, h, 1, h</SourceLine>   <SourceLine>g.drawline 0, h - 1, 0, 1</SourceLine>   <SourceLine>g.drawline 0, h/2, w, h/2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.forecolor = rgb(208, 208, 208)</SourceLine>   <SourceLine>g.fillrect 2, 2, w-3, h/2-2</SourceLine>   <SourceLine>g.forecolor = rgb(160, 160, 160)</SourceLine>   <SourceLine>g.drawline w-1, 1, w-1, h/2-1</SourceLine>   <SourceLine>g.drawline w-1, h/2-1, 1, h/2-1</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.drawline w-1, 1, 1, 1</SourceLine>   <SourceLine>g.drawline 1, 1, 1, h/2-1</SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 0)</SourceLine>   <SourceLine>for i = 0 to 3</SourceLine>   <SourceLine>g.drawline w/2-i, 4+i, w/2+i, 4+i</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.forecolor = rgb(208, 208, 208)</SourceLine>   <SourceLine>g.fillrect 2, h/2+2, w-3, h/2-2</SourceLine>   <SourceLine>g.forecolor = rgb(160, 160, 160)</SourceLine>   <SourceLine>g.drawline w-1, h/2+1, w-1, h-1</SourceLine>   <SourceLine>g.drawline w-1, h-1, 1, h-1</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.drawline w-1, h/2+1, 1, h/2+1</SourceLine>   <SourceLine>g.drawline 1, h/2+1, 1, h-1</SourceLine>   <SourceLine>g.forecolor = rgb(0, 0, 0)</SourceLine>   <SourceLine>for i = 0 to 3</SourceLine>   <SourceLine>g.drawline w/2-i, h-4-i, w/2+i, h-4-i</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Hook>  <ItemName>MouseClick</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult> </Hook> <Hook>  <ItemName>UpClick</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult> </Hook> <Hook>  <ItemName>DownClick</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult> </Hook> <HookInstance>  <ItemName>MouseMove</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Close</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Close()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Open</ItemName>  <ItemSource>   <StartSelRow>5</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>5</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Open()</SourceLine>   <SourceLine>value = 0</SourceLine>   <SourceLine>maximum = 100</SourceLine>   <SourceLine>minimum = 0</SourceLine>   <SourceLine>stepValue = 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDrag</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseDrag(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseUp</ItemName>  <ItemSource>   <StartSelRow>5</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>5</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseUp(X As Integer, Y As Integer)</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine>g = me.graphics</SourceLine>   <SourceLine>redraw g</SourceLine>   <SourceLine>MouseClick</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDown</ItemName>  <ItemSource>   <StartSelRow>48</StartSelRow>   <StartSelCol>11</StartSelCol>   <EndSelRow>48</EndSelRow>   <EndSelCol>11</EndSelCol>   <SourceLine>Function MouseDown(X As Integer, Y As Integer) As Boolean</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim g as graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = me.Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = g.width -1</SourceLine>   <SourceLine>h = g.height -1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if y &lt; h/2 then</SourceLine>   <SourceLine>g.forecolor = rgb(96, 96, 96)</SourceLine>   <SourceLine>g.fillrect 2, 2, w-3, h/2-2</SourceLine>   <SourceLine>g.forecolor = rgb(160, 160, 160)</SourceLine>   <SourceLine>g.drawline w-1, 1, w-1, h/2-1</SourceLine>   <SourceLine>g.drawline w-1, h/2-1, 1, h/2-1</SourceLine>   <SourceLine>g.forecolor = rgb(64, 64, 64)</SourceLine>   <SourceLine>g.drawline w-1, 1, 1, 1</SourceLine>   <SourceLine>g.drawline 1, 1, 1, h/2-1</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>for i = 0 to 3</SourceLine>   <SourceLine>g.drawline w/2-i, 4+i, w/2+i, 4+i</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>value = value + stepValue</SourceLine>   <SourceLine>if value &gt; maximum then</SourceLine>   <SourceLine>value = maximum</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>UpClick</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.forecolor = rgb(96, 96, 96)</SourceLine>   <SourceLine>g.fillrect 2, h/2+2, w-3, h/2-2</SourceLine>   <SourceLine>g.forecolor = rgb(160, 160, 160)</SourceLine>   <SourceLine>g.drawline w-1, h/2+1, w-1, h-1</SourceLine>   <SourceLine>g.drawline w-1, h-1, 1, h-1</SourceLine>   <SourceLine>g.forecolor = rgb(64, 64, 64)</SourceLine>   <SourceLine>g.drawline w-1, h/2+1, 1, h/2+1</SourceLine>   <SourceLine>g.drawline 1, h/2+1, 1, h-1</SourceLine>   <SourceLine>g.forecolor = rgb(255, 255, 255)</SourceLine>   <SourceLine>for i = 0 to 3</SourceLine>   <SourceLine>g.drawline w/2-i, h-4-i, w/2+i, h-4-i</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine>value = value - stepValue</SourceLine>   <SourceLine>if value &lt; minimum then</SourceLine>   <SourceLine>value = minimum</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>DownClick</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>return true</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Paint</ItemName>  <ItemSource>   <StartSelRow>2</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>2</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Paint(g As Graphics)</SourceLine>   <SourceLine>redraw g</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance></block><block type="Module" ID="11"> <ObjName>Grobal</ObjName> <ObjContainerID>36</ObjContainerID> <EditBounds><Rect left="79" top="57" width="400" height="300"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>0</IsClass> <Interfaces></Interfaces> <ObjName>Grobal</ObjName> <ObjSize>52</ObjSize> <IsInterface>0</IsInterface> <Property Flags="0">gVersionString as String</Property> <Property Flags="0">gBasicPath as String</Property> <Property Flags="0">gKamoku(135) as String</Property> <Property Flags="0">gKingaku(135,2) as Double</Property> <Property Flags="0">gFileReadRecord(2000,8) as String</Property> <Property Flags="0">gCompanyType as String</Property> <Property Flags="0">gPrintSettings as String</Property></block><block type="Window" ID="12"> <ObjName>CalendarWindow</ObjName> <ObjContainerID>34</ObjContainerID> <EditBounds><Rect left="100" top="80" width="731" height="400"/></EditBounds> <EditSplit>130</EditSplit> <LastPositionH>302</LastPositionH> <LastPositionV>328</LastPositionV> <PropertyVal Name="Name">CalendarWindow</PropertyVal> <PropertyVal Name="Frame">1</PropertyVal> <PropertyVal Name="HasBackColor">False</PropertyVal> <PropertyVal Name="BackColor">16777215</PropertyVal> <PropertyVal Name="Backdrop">0</PropertyVal> <PropertyVal Name="Title">&#33610;&#33676;&#33683;&#33631;&#33115;</PropertyVal> <PropertyVal Name="Visible">True</PropertyVal> <PropertyVal Name="FullScreen">False</PropertyVal> <PropertyVal Name="MenuBarVisible">True</PropertyVal> <PropertyVal Name="CloseBox">False</PropertyVal> <PropertyVal Name="GrowIcon">False</PropertyVal> <PropertyVal Name="ZoomIcon">False</PropertyVal> <PropertyVal Name="BalloonHelp"></PropertyVal> <PropertyVal Name="MacProcID">0</PropertyVal> <PropertyVal Name="Placement">0</PropertyVal> <PropertyVal Name="Width">400</PropertyVal> <PropertyVal Name="Height">200</PropertyVal> <PropertyVal Name="MinWidth">64</PropertyVal> <PropertyVal Name="MinHeight">64</PropertyVal> <PropertyVal Name="MaxWidth">32000</PropertyVal> <PropertyVal Name="MaxHeight">32000</PropertyVal> <FormDefn>  <ObjName>CalendarWindow</ObjName>  <ObjSize>120</ObjSize>  <Superclass>Window</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Open</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>46</EndSelCol>    <SourceLine>Sub Open()</SourceLine>    <SourceLine>DateBufferField.Text = Mototyou.DateField.Text</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </FormDefn> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>132</ObjSize>  <Superclass>MonthCalendar</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>MouseClick</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>75</EndSelCol>    <SourceLine>Sub MouseClick()</SourceLine>    <SourceLine>DateBufferField.Text = Str(Me.Year) + "&#37966;" + ZeroSup(Me.Month,2) + "&#35982;&#36027;&#36317;"</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>2</StartSelRow>    <StartSelCol>15</StartSelCol>    <EndSelRow>2</EndSelRow>    <EndSelCol>15</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Calendar.DecMonth</SourceLine>    <SourceLine>Calendar.Redraw</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>8</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Calendar.IncMonth</SourceLine>    <SourceLine>Calendar.Redraw</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>3</StartSelRow>    <StartSelCol>9</StartSelCol>    <EndSelRow>3</EndSelRow>    <EndSelCol>22</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Mototyou.DateField.Text = DateBufferField.Text</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Mototyou.MainListClear</SourceLine>    <SourceLine>Mototyou.MainList.aListRefresh</SourceLine>    <SourceLine>Mototyou.MainListScrollBar.Value = 1</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Close</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>Rectangle</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>128</ObjSize>  <Superclass>StaticText</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <Control>  <ControlClass>Canvas</ControlClass>  <ItemName>Canvas</ItemName>  <PropertyVal Name="Name">Calendar</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">20</PropertyVal>  <PropertyVal Name="Top">41</PropertyVal>  <PropertyVal Name="Width">357</PropertyVal>  <PropertyVal Name="Height">145</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Backdrop">0</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="UseFocusRing">True</PropertyVal>  <PropertyVal Name="AcceptFocus">False</PropertyVal>  <PropertyVal Name="AcceptTabs">False</PropertyVal>  <ControlIndex>0</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">296</PropertyVal>  <PropertyVal Name="Top">13</PropertyVal>  <PropertyVal Name="Width">35</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#33155;&#33155;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>1</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton2</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">342</PropertyVal>  <PropertyVal Name="Top">13</PropertyVal>  <PropertyVal Name="Width">35</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#33156;&#33156;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>2</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton3</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">138</PropertyVal>  <PropertyVal Name="Top">12</PropertyVal>  <PropertyVal Name="Width">60</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">OK</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>3</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle9</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">504</PropertyVal>  <PropertyVal Name="Top">8</PropertyVal>  <PropertyVal Name="Width">108</PropertyVal>  <PropertyVal Name="Height">21</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">15658734</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>4</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">StaticText2</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">509</PropertyVal>  <PropertyVal Name="Top">11</PropertyVal>  <PropertyVal Name="Width">104</PropertyVal>  <PropertyVal Name="Height">16</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text">1998&#37966;12&#35982;&#36027;&#36317;</PropertyVal>  <PropertyVal Name="TextAlign">0</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>5</ControlIndex> </Control> <Control>  <ControlClass>Rectangle</ControlClass>  <ItemName>Rectangle</ItemName>  <PropertyVal Name="Name">Rectangle1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">25</PropertyVal>  <PropertyVal Name="Top">12</PropertyVal>  <PropertyVal Name="Width">108</PropertyVal>  <PropertyVal Name="Height">21</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="FillColor">15658734</PropertyVal>  <PropertyVal Name="BorderWidth">1</PropertyVal>  <PropertyVal Name="TopLeftColor">0</PropertyVal>  <PropertyVal Name="BottomRightColor">0</PropertyVal>  <ControlIndex>6</ControlIndex> </Control> <Control>  <ControlClass>StaticText</ControlClass>  <ItemName>StaticText</ItemName>  <PropertyVal Name="Name">DateBufferField</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">29</PropertyVal>  <PropertyVal Name="Top">15</PropertyVal>  <PropertyVal Name="Width">104</PropertyVal>  <PropertyVal Name="Height">16</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Text"></PropertyVal>  <PropertyVal Name="TextAlign">0</PropertyVal>  <PropertyVal Name="TextColor">0</PropertyVal>  <PropertyVal Name="MultiLine">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <PropertyVal Name="DataSource"></PropertyVal>  <PropertyVal Name="DataField"></PropertyVal>  <ControlIndex>7</ControlIndex> </Control></block><block type="Module" ID="29"> <ObjName>CellButton</ObjName> <ObjContainerID>35</ObjContainerID> <EditBounds><Rect left="13" top="375" width="923" height="360"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>1</IsClass> <Interfaces></Interfaces> <ObjName>CellButton</ObjName> <ObjSize>192</ObjSize> <Superclass>Canvas</Superclass> <IsInterface>0</IsInterface> <Property Flags="0">ButtonName(96,32) as String</Property> <Property Flags="0">ColCount as Integer</Property> <Property Flags="0">RowCount as Integer</Property> <Property Flags="0">CellWidth as Integer</Property> <Property Flags="0">CellHeight as Integer</Property> <Property Flags="0">TextFont as String</Property> <Property Flags="0">TextSize as Integer</Property> <Property Flags="0">ButtonColor(96,32) as Integer</Property> <Property Flags="0">ButtonData1(96,32) as String</Property> <Property Flags="0">Ver110 as String</Property> <Property Flags="0">ButtonType as Integer</Property> <Property Flags="0">ButtonStatus(96,32) as Integer</Property> <Property Flags="0">PushButtonCol as Integer</Property> <Property Flags="0">PushButtonRow as Integer</Property> <Property Flags="0">BadName as String</Property> <Property Flags="0">gButtonColor(10) as Color</Property> <Property Flags="0">gButtonColorDark(10) as Color</Property> <Property Flags="0">ButtonData2(96,32) as String</Property> <Property Flags="0">gButtonColorLight(10) as Color</Property> <Property Flags="0">LeftMargin as Integer</Property> <Property Flags="0">TopMargin as Integer</Property> <Method>  <ItemName>ChangeButtonColor</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>17</StartSelRow>   <StartSelCol>9</StartSelCol>   <EndSelRow>17</EndSelRow>   <EndSelCol>11</EndSelCol>   <SourceLine>Sub ChangeButtonColor()</SourceLine>   <SourceLine>'&#36471;&#36518;&#33459;&#33514;&#33476;&#33442;&#33480;&#33442;&#33504;&#33484;&#33485;&#35396;&#36934;</SourceLine>   <SourceLine>gButtonColor(0)= RGB(100,100,100)</SourceLine>   <SourceLine>'&#36497;&#36441;&#33129;&#37058;&#33130;</SourceLine>   <SourceLine>gButtonColor(1) = RGB(192,192,255)</SourceLine>   <SourceLine>'&#38281;&#36290;&#33129;&#33609;&#33676;&#33683;&#33623;&#33130;</SourceLine>   <SourceLine>gButtonColor(2) = RGB(255,192,192)</SourceLine>   <SourceLine>'&#36497;&#38523;&#33129;&#35241;&#38862;&#33130;</SourceLine>   <SourceLine>gButtonColor(3) = RGB(192,255,192)</SourceLine>   <SourceLine>'&#36452;&#37884;&#33129;&#36997;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColor(4) = RGB(192,255,255)</SourceLine>   <SourceLine>'&#38020;&#33512;&#36835;&#33456;&#33129;&#35241;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColor(5) = RGB(255,236,192)</SourceLine>   <SourceLine>'&#35951;&#38127;&#33129;&#38038;&#33442;&#33651;&#33683;&#33614;&#33130;</SourceLine>   <SourceLine>gButtonColor(6) = RGB(255,192,255)</SourceLine>   <SourceLine>'"&#35171;&#35782;&#35407;&#36603;&#35190;&#33129;&#35396;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColor(7) = RGB(192,192,192)</SourceLine>   <SourceLine>'&#35171;&#35782;&#35407;&#38127;&#38768;&#33129;&#33651;&#33683;&#33614;&#33130;</SourceLine>   <SourceLine>gButtonColor(8) = RGB(236,174,236)</SourceLine>   <SourceLine>'"&#36168;&#36842;&#35951;&#38127;&#33129;&#37978;&#33442;&#37058;&#33130;</SourceLine>   <SourceLine>gButtonColor(9) = RGB(212,212,212)</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ChangeButtonColorDark</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>17</StartSelRow>   <StartSelCol>9</StartSelCol>   <EndSelRow>17</EndSelRow>   <EndSelCol>11</EndSelCol>   <SourceLine>Sub ChangeButtonColorDark()</SourceLine>   <SourceLine>'&#36471;&#36518;&#33459;&#33514;&#33476;&#33442;&#33480;&#33442;&#33504;&#33484;&#33485;&#35396;&#36934;</SourceLine>   <SourceLine>gButtonColorDark(0)= RGB(100,100,100)</SourceLine>   <SourceLine>'&#36497;&#36441;&#33129;&#37058;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(1) = RGB(152,152,239)</SourceLine>   <SourceLine>'&#38281;&#36290;&#33129;&#33609;&#33676;&#33683;&#33623;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(2) = RGB(239,152,152)</SourceLine>   <SourceLine>'&#36497;&#38523;&#33129;&#35241;&#38862;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(3) = RGB(152,239,152)</SourceLine>   <SourceLine>'&#36452;&#37884;&#33129;&#36997;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(4) = RGB(152,239,239)</SourceLine>   <SourceLine>'&#38020;&#33512;&#36835;&#33456;&#33129;&#35241;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(5) = RGB(192,192,152)</SourceLine>   <SourceLine>'&#35951;&#38127;&#33129;&#38038;&#33442;&#33651;&#33683;&#33614;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(6) = RGB(239,152,239)</SourceLine>   <SourceLine>'"&#35171;&#35782;&#35407;&#36603;&#35190;&#33129;&#35396;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(7) = RGB(160,160,160)</SourceLine>   <SourceLine>'&#35171;&#35782;&#35407;&#38127;&#38768;&#33129;&#33651;&#33683;&#33614;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(8) = RGB(192,128,192)</SourceLine>   <SourceLine>'"&#36168;&#36842;&#35951;&#38127;&#33129;&#37978;&#33442;&#37058;&#33130;</SourceLine>   <SourceLine>gButtonColorDark(9) = RGB(174,174,174)</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>RedrawDown</ItemName>  <ItemParams>tGraphics as Graphics,CellX as Integer,CellY as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>17</StartSelRow>   <StartSelCol>18</StartSelCol>   <EndSelRow>17</EndSelRow>   <EndSelCol>26</EndSelCol>   <SourceLine>Sub RedrawDown(tGraphics as Graphics,CellX as Integer,CellY as Integer)</SourceLine>   <SourceLine>Dim tGraph as Graphics</SourceLine>   <SourceLine>Dim l as Integer</SourceLine>   <SourceLine>Dim t as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>l = LeftMargin</SourceLine>   <SourceLine>t = TopMargin</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph = tGraphics</SourceLine>   <SourceLine>tGraph.ForeColor = gButtonColor(ButtonColor(CellX,CellY))</SourceLine>   <SourceLine>tGraph.FillRect l + CellWidth * (CellX - 1),t + CellHeight * (CellY - 1),CellWidth,CellHeight</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.ForeColor = gButtonColorDark(ButtonColor(CellX,CellY))</SourceLine>   <SourceLine>tGraph.DrawLine l + CellWidth * (CellX - 1),t + CellHeight * (CellY - 1),l + CellWidth * (CellX - 1),t + CellHeight * CellY-1</SourceLine>   <SourceLine>tGraph.DrawLine l + CellWidth * (CellX - 1),t + CellHeight * (CellY - 1),l + CellWidth * CellX -1,t + CellHeight * (CellY - 1)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.TextFont = TextFont</SourceLine>   <SourceLine>tGraph.TextSize = TextSize</SourceLine>   <SourceLine>tGraph.ForeColor = RGB(0,0,0)</SourceLine>   <SourceLine>CenterPrint tGraph,ButtonName(CellX,CellY),l + CellWidth * CellX + 1,t + CellWidth * (CellX - 1) + 1,CellHeight * CellY + 1,CellHeight * (CellY - 1) - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33659;&#33630;&#33683;&#33450;&#35231;&#33459;&#33514;&#33469;</SourceLine>   <SourceLine>ButtonStatus(CellX,CellY) = 1</SourceLine>   <SourceLine>//&#35231;&#33459;&#33514;&#33469;&#33659;&#33630;&#33683;&#33484;&#35018;&#37493;&#33520;&#35439;&#33446;&#33513;</SourceLine>   <SourceLine>PushButtonCol = CellX</SourceLine>   <SourceLine>PushButtonRow = CellY</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>RedrawUp</ItemName>  <ItemParams>tGraphics as Graphics,CellX as Integer,CellY as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>21</StartSelRow>   <StartSelCol>18</StartSelCol>   <EndSelRow>21</EndSelRow>   <EndSelCol>26</EndSelCol>   <SourceLine>Sub RedrawUp(tGraphics as Graphics,CellX as Integer,CellY as Integer)</SourceLine>   <SourceLine>Dim tGraph as Graphics</SourceLine>   <SourceLine>Dim l as Integer</SourceLine>   <SourceLine>Dim t as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>l = LeftMargin</SourceLine>   <SourceLine>t = TopMargin</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph = tGraphics</SourceLine>   <SourceLine>tGraph.ForeColor = gButtonColor(ButtonColor(CellX,CellY))</SourceLine>   <SourceLine>tGraph.FillRect l + CellWidth * (CellX - 1),t + CellHeight * (CellY - 1),CellWidth,CellHeight</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.ForeColor = gButtonColorDark(ButtonColor(CellX,CellY))</SourceLine>   <SourceLine>tGraph.DrawLine l + CellWidth * (CellX - 1),t + CellHeight * CellY - 1,l + CellWidth * CellX - 2,t + CellHeight * CellY - 1</SourceLine>   <SourceLine>tGraph.DrawLine l + CellWidth * CellX - 1,t + CellHeight * (CellY - 1) - 1,l + CellWidth * CellX - 1,t + CellHeight * CellY - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.ForeColor = gButtonColorLight(ButtonColor(CellX,CellY))</SourceLine>   <SourceLine>tGraph.DrawLine l + CellWidth * (CellX -1),t + CellHeight * (CellY - 1),l + CellWidth * CellX - 1,t + CellHeight * (CellY - 1)</SourceLine>   <SourceLine>tGraph.DrawLine l + CellWidth * (CellX -1),t + CellHeight * (CellY - 1),l + CellWidth * (CellX -1),t + CellHeight * CellY - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.TextFont = TextFont</SourceLine>   <SourceLine>tGraph.TextSize = TextSize</SourceLine>   <SourceLine>tGraph.ForeColor = RGB(0,0,0)</SourceLine>   <SourceLine>CenterPrint tGraph,ButtonName(CellX,CellY),l + CellWidth * CellX,t + CellWidth * (CellX - 1),CellHeight * CellY,CellHeight * (CellY - 1) - 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33659;&#33630;&#33683;&#33485;&#36509;&#33471;&#36835;&#33450;&#33473;&#33476;&#33504;&#33478;&#33481;&#38623;&#33473;&#33469;</SourceLine>   <SourceLine>ButtonStatus(CellX,CellY) = 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MakeButton</ItemName>  <ItemParams>tGraph as Graphics</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>9</StartSelRow>   <StartSelCol>17</StartSelCol>   <EndSelRow>9</EndSelRow>   <EndSelCol>17</EndSelCol>   <SourceLine>Sub MakeButton(tGraph as Graphics)</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine>Dim j as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>tGraph.DrawRect 0, 0, tGraph.Width-1, tGraph.Height-1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>For i = 1 to ColCount</SourceLine>   <SourceLine>For j = 1 to RowCount</SourceLine>   <SourceLine>If ButtonStatus(i,j) = 0 Then</SourceLine>   <SourceLine>RedrawUp tGraph,i,j</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>RedrawDown tGraph,i,j</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ChangeButtonColorLight</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>17</StartSelRow>   <StartSelCol>9</StartSelCol>   <EndSelRow>17</EndSelRow>   <EndSelCol>11</EndSelCol>   <SourceLine>Sub ChangeButtonColorLight()</SourceLine>   <SourceLine>'&#36471;&#36518;&#33459;&#33514;&#33476;&#33442;&#33480;&#33442;&#33504;&#33484;&#33485;&#35396;&#36934;</SourceLine>   <SourceLine>gButtonColorLight(0)= RGB(100,100,100)</SourceLine>   <SourceLine>'&#36497;&#36441;&#33129;&#37058;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(1) = RGB(224,224,255)</SourceLine>   <SourceLine>'&#38281;&#36290;&#33129;&#33609;&#33676;&#33683;&#33623;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(2) = RGB(255,224,224)</SourceLine>   <SourceLine>'&#36497;&#38523;&#33129;&#35241;&#38862;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(3) = RGB(224,255,224)</SourceLine>   <SourceLine>'&#36452;&#37884;&#33129;&#36997;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(4) = RGB(224,255,255)</SourceLine>   <SourceLine>'&#38020;&#33512;&#36835;&#33456;&#33129;&#35241;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(5) = RGB(255,236,224)</SourceLine>   <SourceLine>'&#35951;&#38127;&#33129;&#38038;&#33442;&#33651;&#33683;&#33614;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(6) = RGB(255,224,255)</SourceLine>   <SourceLine>'"&#35171;&#35782;&#35407;&#36603;&#35190;&#33129;&#35396;&#36934;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(7) = RGB(208,208,208)</SourceLine>   <SourceLine>'&#35171;&#35782;&#35407;&#38127;&#38768;&#33129;&#33651;&#33683;&#33614;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(8) = RGB(236,192,236)</SourceLine>   <SourceLine>'"&#36168;&#36842;&#35951;&#38127;&#33129;&#37978;&#33442;&#37058;&#33130;</SourceLine>   <SourceLine>gButtonColorLight(9) = RGB(236,236,236)</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Hook>  <ItemName>MouseUp</ItemName>  <ItemParams>Col as Integer,Row as Integer</ItemParams>  <ItemResult></ItemResult> </Hook> <Hook>  <ItemName>MouseDown</ItemName>  <ItemParams>Col as Integer,Row as Integer</ItemParams>  <ItemResult></ItemResult> </Hook> <Hook>  <ItemName>MouseClick</ItemName>  <ItemParams>Col as Integer,Row as Integer</ItemParams>  <ItemResult></ItemResult> </Hook> <HookInstance>  <ItemName>Close</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Close()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Open</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Open()</SourceLine>   <SourceLine>ChangeButtonColor()</SourceLine>   <SourceLine>ChangeButtonColorDark()</SourceLine>   <SourceLine>ChangeButtonColorLight()</SourceLine>   <SourceLine>PushButtonCol = -1</SourceLine>   <SourceLine>PushButtonRow = -1</SourceLine>   <SourceLine>LeftMargin = 1</SourceLine>   <SourceLine>TopMargin = 1</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseMove</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseExit</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseExit()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseEnter</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseEnter()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDrag</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseDrag(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseUp</ItemName>  <ItemSource>   <StartSelRow>2</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>2</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseUp(X As Integer, Y As Integer)</SourceLine>   <SourceLine>Dim tGraph as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//ButtonType&#33450;0&#33480;&#33511;&#33486;MouseUp&#33520;&#36211;&#33444;</SourceLine>   <SourceLine>If ButtonType = 0 Then</SourceLine>   <SourceLine>tGraph = Me.Graphics</SourceLine>   <SourceLine>RedrawUp tGraph,PushButtonCol,PushButtonRow</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>MouseClick PushButtonCol,PushButtonRow</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDown</ItemName>  <ItemSource>   <StartSelRow>21</StartSelRow>   <StartSelCol>29</StartSelCol>   <EndSelRow>21</EndSelRow>   <EndSelCol>29</EndSelCol>   <SourceLine>Function MouseDown(X As Integer, Y As Integer) As Boolean</SourceLine>   <SourceLine>Dim tGraph as Graphics</SourceLine>   <SourceLine>Dim CellX as Integer</SourceLine>   <SourceLine>Dim CellY as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph = Me.Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>CellX = (X / CellWidth) + 1</SourceLine>   <SourceLine>CellY = (Y / CellHeight) + 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If ButtonName(CellX,CellY) &lt;&gt; BadName Then</SourceLine>   <SourceLine>//&#33504;&#33461;&#33089;ButtonType&#33450;0&#33480;&#33511;&#36257;&#35231;&#33459;&#33514;&#33469;&#33659;&#33630;&#33683;&#33520;&#35226;&#33500;&#33465;&#33513;</SourceLine>   <SourceLine>If ButtonType = 0 Then</SourceLine>   <SourceLine>RedrawDown tGraph,CellX,CellY</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33504;&#33461;&#33089;ButtonType&#33450;1&#33477;&#35050;&#37752;&#33477;&#33504;&#33659;&#33630;&#33683;&#33450;&#35231;&#33459;&#33514;&#33476;&#33442;&#33513;&#33480;&#33511;</SourceLine>   <SourceLine>//&#37199;&#35313;&#35231;&#33459;&#33514;&#33469;&#33659;&#33630;&#33683;&#33520;&#36509;&#33471;&#36835;&#33456;&#33476;&#33504;&#33478;&#33481;&#38623;&#33463;</SourceLine>   <SourceLine>//&#33467;&#33514;&#35016;&#35407;&#33484;&#36510;&#33481;&#33485;&#33659;&#33630;&#33683;&#33520;&#35226;&#33500;&#33465;&#33513;</SourceLine>   <SourceLine>If ButtonType = 1 And PushButtonCol &lt;&gt; -1 And PushButtonRow &lt;&gt; -1 Then</SourceLine>   <SourceLine>RedrawUp tGraph,PushButtonCol,PushButtonRow</SourceLine>   <SourceLine>RedrawDown tGraph,CellX,CellY</SourceLine>   <SourceLine>ElseIf ButtonType = 1 Then</SourceLine>   <SourceLine>RedrawDown tGraph,CellX,CellY</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33504;&#33461;&#33089;ButtonType&#33450;2&#33477;&#36257;&#35231;&#33459;&#33514;&#33469;&#33659;&#33630;&#33683;&#33450;&#35226;&#33521;&#33477;&#33442;&#33513;&#33480;&#33511;</SourceLine>   <SourceLine>//&#35226;&#33521;&#33470;&#33659;&#33630;&#33683;&#33520;&#36509;&#33471;&#36835;&#33456;&#33476;&#33504;&#33478;&#33481;&#38623;&#33463;</SourceLine>   <SourceLine>//&#33467;&#33514;&#35016;&#35407;&#33484;&#36510;&#33481;&#33485;&#33659;&#33630;&#33683;&#33520;&#35226;&#33500;&#33465;&#33513;</SourceLine>   <SourceLine>If ButtonType = 2 And ButtonStatus(CellX,CellY) = 1 Then</SourceLine>   <SourceLine>RedrawUp tGraph,CellX,CellY</SourceLine>   <SourceLine>ElseIf ButtonType = 2 Then</SourceLine>   <SourceLine>RedrawDown tGraph,CellX,CellY</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return True</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Paint</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>12</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>12</EndSelCol>   <SourceLine>Sub Paint(g As Graphics)</SourceLine>   <SourceLine>MakeButton g</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance></block><block type="Window" ID="19"> <ObjName>PrintMenu</ObjName> <ObjContainerID>34</ObjContainerID> <EditBounds><Rect left="39" top="76" width="1210" height="659"/></EditBounds> <EditSplit>201</EditSplit> <LastPositionH>147</LastPositionH> <LastPositionV>135</LastPositionV> <PropertyVal Name="Name">PrintMenu</PropertyVal> <PropertyVal Name="Frame">1</PropertyVal> <PropertyVal Name="HasBackColor">False</PropertyVal> <PropertyVal Name="BackColor">16777215</PropertyVal> <PropertyVal Name="Backdrop">0</PropertyVal> <PropertyVal Name="Title">&#35059;&#36348;&#37856;&#38757;&#37193;&#37360;</PropertyVal> <PropertyVal Name="Visible">True</PropertyVal> <PropertyVal Name="FullScreen">False</PropertyVal> <PropertyVal Name="MenuBarVisible">True</PropertyVal> <PropertyVal Name="CloseBox">False</PropertyVal> <PropertyVal Name="GrowIcon">False</PropertyVal> <PropertyVal Name="ZoomIcon">False</PropertyVal> <PropertyVal Name="BalloonHelp"></PropertyVal> <PropertyVal Name="MacProcID">0</PropertyVal> <PropertyVal Name="Placement">0</PropertyVal> <PropertyVal Name="Width">271</PropertyVal> <PropertyVal Name="Height">276</PropertyVal> <PropertyVal Name="MinWidth">64</PropertyVal> <PropertyVal Name="MinHeight">64</PropertyVal> <PropertyVal Name="MaxWidth">32000</PropertyVal> <PropertyVal Name="MaxHeight">32000</PropertyVal> <FormDefn>  <ObjName>PrintMenu</ObjName>  <ObjSize>120</ObjSize>  <Superclass>Window</Superclass>  <IsInterface>0</IsInterface>  <Method>   <ItemName>SlipPrint</ItemName>   <ItemParams>tGraph as Graphics,tSetOrgX as Integer,tSetOrgY as Integer,tDaimeiString as String</ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>37</StartSelRow>    <StartSelCol>6</StartSelCol>    <EndSelRow>37</EndSelRow>    <EndSelCol>6</EndSelCol>    <SourceLine>Sub SlipPrint(tGraph as Graphics,tSetOrgX as Integer,tSetOrgY as Integer,tDaimeiString as String)</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine>Dim tPrintString as string</SourceLine>    <SourceLine>Dim tPrintPage as Integer</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>OpenPrint(tGraph,tSetOrgX,tSetOrgY,"20;20;20;20","37;37","4;9;31;5;11;11;11","&#37882;&#38260;" + Chr(9) + "&#35272;&#38618;" + Chr(9) + "&#37701;&#33088;&#33088;&#38774;" + Chr(9) + " " + Chr(9) + "&#36568;&#38395;" + Chr(9) + "&#37341;&#38395;" + Chr(9) + "&#36451;&#36226;","L;M;L;L;R;R;R","&#33649;&#33673;&#33613;&#33645;&#38590;&#37545; Pro W3","10")</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>For i = 1 to 2000</SourceLine>    <SourceLine>If Trim(Mototyou.MainList.Cell(i,4)) &lt;&gt; "" Then</SourceLine>    <SourceLine>tPrintString = Trim(Mototyou.MainList.Cell(i,1)) + Chr(9)</SourceLine>    <SourceLine>tPrintString = tPrintString + SetKamoku(Trim(Mototyou.MainList.Cell(i,2))) + Chr(9)</SourceLine>    <SourceLine>tPrintString = tPrintString + Trim(Mototyou.MainList.Cell(i,4)) + Chr(9)</SourceLine>    <SourceLine>tPrintString = tPrintString + Trim(Mototyou.MainList.Cell(i,5)) + Chr(9)</SourceLine>    <SourceLine>tPrintString = tPrintString + Trim(Mototyou.MainList.Cell(i,6)) + Chr(9)</SourceLine>    <SourceLine>tPrintString = tPrintString + Trim(Mototyou.MainList.Cell(i,7)) + Chr(9)</SourceLine>    <SourceLine>tPrintString = tPrintString + Trim(Mototyou.MainList.Cell(i,8))</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tPrintPage = AddPrint(tGraph,tPrintString)</SourceLine>    <SourceLine>If lPageLineNumber(1) = 2 Then</SourceLine>    <SourceLine>HeardFootPrint(tGraph,tSetOrgX,tSetOrgY,tDaimeiString)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>Next</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If lPageLineNumber(1) - 1 &lt;&gt; 0 Then</SourceLine>    <SourceLine>OutPlotP tGraph,lPrintData(6),lPrintData(7) + lPrintData(4) * lPageLineNumber(1),lPrintData(8) ,lPrintData(7) + lPrintData(4) * lPageLineNumber(1)</SourceLine>    <SourceLine>tPrintString = Chr(9) + Chr(9) + " &#33088;&#33088;&#33088;&#33088;&#33088;&#33088;&#37782;&#33088;&#35982;&#33088;&#36231;&#33088;&#35958;" + Chr(9) + Chr(9) + Mototyou.KariTotal.Text + Chr(9) + Mototyou.KasiTotal.Text + Chr(9)</SourceLine>    <SourceLine>tPrintPage = AddPrint(tGraph,tPrintString)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>OutPlotP tGraph,lPrintData(6),lPrintData(7) + lPrintData(4) * lPageLineNumber(1),lPrintData(8) ,lPrintData(7) + lPrintData(4) * lPageLineNumber(1)</SourceLine>    <SourceLine>tPrintString = Chr(9) + Chr(9) +  "&#33088;&#33088;&#33088;&#33088;&#33088;&#33088;&#33088;&#33088;&#38877;&#33088;&#33088;&#35958;" + Chr(9) + Chr(9) + Mototyou.AllKariTotal.Text + Chr(9) + Mototyou.AllKasiTotal.Text + Chr(9)</SourceLine>    <SourceLine>tPrintPage = AddPrint(tGraph,tPrintString)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>ListPrint tGraph,lPageLineNumber(1)</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>HeardFootPrint</ItemName>   <ItemParams>tGraph as Graphics,tSetOrgX as Integer,tSetOrgY as Integer,tDaimeiString as String</ItemParams>   <ItemResult></ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>20</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>20</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub HeardFootPrint(tGraph as Graphics,tSetOrgX as Integer,tSetOrgY as Integer,tDaimeiString as String)</SourceLine>    <SourceLine>tGraph.TextFont = "&#33649;&#33673;&#33613;&#33645;&#38590;&#37545; Pro W3"</SourceLine>    <SourceLine>tGraph.TextSize = 14</SourceLine>    <SourceLine>tGraph.bold = false</SourceLine>    <SourceLine>OutPrintP tGraph,lPrintData(6),lPrintData(7) - 8, LeftB(Mototyou.DateField.Text,10) +"&#38550;&#36027;&#36317;","L"</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>tGraph.TextFont = "&#33379;&#33381;&#38890;&#36753;&#37324;"</SourceLine>    <SourceLine>tGraph.TextSize = 12</SourceLine>    <SourceLine>tGraph.bold = false</SourceLine>    <SourceLine>OutPrintP tGraph,lSegmentSize(6) + 75,lPrintData(7) - 8, "&#35476;&#36526;&#35311;&#36560;","L"</SourceLine>    <SourceLine>tGraph.TextSize = 14</SourceLine>    <SourceLine>OutPrintP tGraph,lSegmentSize(6) + 130,lPrintData(7) - 8, "&#38464;&#35982;&#36168;&#35964;&#36560;","L"</SourceLine>    <SourceLine>CenterPrintP tGraph,"Norizuki Industrial Arts Co.,Ltd.",0,lPrintData(0),630,640</SourceLine>    <SourceLine></SourceLine>    <SourceLine></SourceLine>    <SourceLine>tGraph.TextFont = "&#33649;&#33673;&#33613;&#33645;&#38590;&#37545; Pro W3"</SourceLine>    <SourceLine>tGraph.TextSize = 18</SourceLine>    <SourceLine>tGraph.bold = true</SourceLine>    <SourceLine>CenterPrintP tGraph,tDaimeiString,0,lPrintData(0),lPrintData(7) - 8,10//&#36027;&#35808;&#33478;&#33449;</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </Method>  <Method>   <ItemName>SetKamoku</ItemName>   <ItemParams>tKamoku as String</ItemParams>   <ItemResult>String</ItemResult>   <ItemFlags>0</ItemFlags>   <ItemSource>    <StartSelRow>5</StartSelRow>    <StartSelCol>37</StartSelCol>    <EndSelRow>5</EndSelRow>    <EndSelCol>37</EndSelCol>    <SourceLine>Function SetKamoku(tKamoku as String) As String</SourceLine>    <SourceLine>Dim tReturnString as String</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Select Case LenB(tKamoku)</SourceLine>    <SourceLine>Case 4</SourceLine>    <SourceLine>tReturnString = LeftB(tKamoku,2) + " " + RightB(tKamoku,2)</SourceLine>    <SourceLine>Case 6</SourceLine>    <SourceLine>tReturnString = LeftB(tKamoku,2) + "&#33088;" + MidB(tKamoku,3,2) + "&#33088;" + RightB(tKamoku,2)</SourceLine>    <SourceLine>Case 8</SourceLine>    <SourceLine>tReturnString = LeftB(tKamoku,2) + " " + MidB(tKamoku,3,2) + " " + MidB(tKamoku,5,2) + " " + RightB(tKamoku,2)</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>tReturnString = tKamoku</SourceLine>    <SourceLine>End Select</SourceLine>    <SourceLine></SourceLine>    <SourceLine>Return tReturnString</SourceLine>    <SourceLine>End Function</SourceLine>   </ItemSource>  </Method>  <HookInstance>   <ItemName>Open</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Open()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </FormDefn> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>108</ObjSize>  <Superclass>GroupBox</Superclass>  <IsInterface>0</IsInterface> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>124</ObjSize>  <Superclass>RadioButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>124</ObjSize>  <Superclass>RadioButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>124</ObjSize>  <Superclass>RadioButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>0</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>0</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine></SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>21</StartSelRow>    <StartSelCol>70</StartSelCol>    <EndSelRow>21</EndSelRow>    <EndSelCol>70</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Dim tGraph as Graphics</SourceLine>    <SourceLine>Dim i as Integer</SourceLine>    <SourceLine>Dim j as Integer</SourceLine>    <SourceLine>Dim tPrintSetting as PrinterSetup</SourceLine>    <SourceLine></SourceLine>    <SourceLine>tPrintSetting = New PrinterSetup</SourceLine>    <SourceLine>tPrintSetting.SetupString = gPrintSettings</SourceLine>    <SourceLine>tGraph = OpenPrinterDialog(tPrintSetting)</SourceLine>    <SourceLine></SourceLine>    <SourceLine>If tGraph &lt;&gt; Nil Then</SourceLine>    <SourceLine>If RadioButton3.Value &lt;&gt; True Then</SourceLine>    <SourceLine>//&#37203;&#35814;&#38314;&#35059;&#36348;</SourceLine>    <SourceLine>i = 1</SourceLine>    <SourceLine>j = 1</SourceLine>    <SourceLine>While Mototyou.MainButton.ButtonName(i,j) &lt;&gt; ""</SourceLine>    <SourceLine>If Mototyou.MainButton.ButtonName(i,j) &lt;&gt; Mototyou.MainButton.BadName Then</SourceLine>    <SourceLine>//&#33665;&#33603;&#33683;&#33674;&#33624;&#33639;&#33614;&#33674;&#33601;</SourceLine>    <SourceLine>Mototyou.MainListClear()</SourceLine>    <SourceLine>//&#35914;&#33512;&#35194;&#33461;&#33638;&#33115;&#33630;&#37831;&#33501;&#36254;&#33501;</SourceLine>    <SourceLine>Mototyou.ReadTransfer(Mototyou.DateField.Text,Mototyou.MainButton.ButtonName(i,j),Mototyou.MainButton.ButtonColor(i,j),Mototyou.PopupMenu1.ListIndex)</SourceLine>    <SourceLine>//&#36949;&#37728;&#33638;&#33115;&#33630;&#37831;&#33501;&#36254;&#33501;&#33129;&#33457;&#33473;&#33471;&#33520;&#38732;&#36088;&#33481;&#33463;&#33513;&#33478;&#33089;&#36949;&#37728;&#33638;&#33115;&#33630;&#33449;&#33511;&#36019;&#37536;&#33520;&#36332;&#37036;&#33130;</SourceLine>    <SourceLine>Mototyou.ReadAccount(Mototyou.MainButton.ButtonName(i,j),Mototyou.PopupMenu1.ListIndex)</SourceLine>    <SourceLine>//&#37882;&#38260;&#33455;&#33484;&#33628;&#33115;&#33639;</SourceLine>    <SourceLine>Mototyou.DataSort(Mototyou.MainButton.ButtonColor(i,j))</SourceLine>    <SourceLine>If RadioButton2.Value = True Or (RadioButton1.Value = True And Mototyou.MainList.Cell(2,3) &lt;&gt; "") Then</SourceLine>    <SourceLine>SlipPrint(tGraph,0,0,Mototyou.MainButton.ButtonName(i,j))</SourceLine>    <SourceLine>tGraph.NeXTPage</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>j = j + 1</SourceLine>    <SourceLine>If j = Mototyou.MainButton.RowCount + 1Then</SourceLine>    <SourceLine>i = i + 1</SourceLine>    <SourceLine>j = 1</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>If j = Mototyou.MainButton.RowCount And i = Mototyou.MainButton.ColCount Then</SourceLine>    <SourceLine>Exit</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>Wend</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>SlipPrint(tGraph,0,0,Mototyou.KamokuName.Text)</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine>Else</SourceLine>    <SourceLine>MsgBox "&#33654;&#33674;&#33683;&#33630;&#33450;&#35402;&#33455;&#33500;&#33465;&#33521;&#33477;&#33461;&#33469;"</SourceLine>    <SourceLine>End If</SourceLine>    <SourceLine></SourceLine>    <SourceLine>gScreenX = 0</SourceLine>    <SourceLine>gScreenY = 0</SourceLine>    <SourceLine>Close</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <ControlBehavior>  <ObjName></ObjName>  <ObjSize>120</ObjSize>  <Superclass>PushButton</Superclass>  <IsInterface>0</IsInterface>  <HookInstance>   <ItemName>Action</ItemName>   <ItemSource>    <StartSelRow>1</StartSelRow>    <StartSelCol>5</StartSelCol>    <EndSelRow>1</EndSelRow>    <EndSelCol>5</EndSelCol>    <SourceLine>Sub Action()</SourceLine>    <SourceLine>Close</SourceLine>    <SourceLine>End Sub</SourceLine>   </ItemSource>  </HookInstance> </ControlBehavior> <Control>  <ControlClass>GroupBox</ControlClass>  <ItemName>GroupBox</ItemName>  <PropertyVal Name="Name">GroupBox1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">13</PropertyVal>  <PropertyVal Name="Top">13</PropertyVal>  <PropertyVal Name="Width">245</PropertyVal>  <PropertyVal Name="Height">87</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#35059;&#36348;&#37856;&#38757;</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>0</ControlIndex> </Control> <Control>  <ControlClass>RadioButton</ControlClass>  <ItemName>RadioButton</ItemName>  <PropertyVal Name="Name">RadioButton1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">46</PropertyVal>  <PropertyVal Name="Top">34</PropertyVal>  <PropertyVal Name="Width">180</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#38351;&#37806;&#33484;&#33440;&#33513;&#37203;&#33476;&#33484;&#35272;&#38618;&#33520;&#35059;&#36348;</PropertyVal>  <PropertyVal Name="Value">True</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>1</ControlIndex> </Control> <Control>  <ControlClass>RadioButton</ControlClass>  <ItemName>RadioButton</ItemName>  <PropertyVal Name="Name">RadioButton2</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">46</PropertyVal>  <PropertyVal Name="Top">52</PropertyVal>  <PropertyVal Name="Width">180</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#37203;&#33476;&#33484;&#35272;&#38618;&#33520;&#35059;&#36348;</PropertyVal>  <PropertyVal Name="Value">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>2</ControlIndex> </Control> <Control>  <ControlClass>RadioButton</ControlClass>  <ItemName>RadioButton</ItemName>  <PropertyVal Name="Name">RadioButton3</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">46</PropertyVal>  <PropertyVal Name="Top">70</PropertyVal>  <PropertyVal Name="Width">180</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#36027;&#36317;&#38236;&#36518;&#37510;&#33484;&#35272;&#38618;&#33520;&#35059;&#36348;</PropertyVal>  <PropertyVal Name="Value">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>3</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton1</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">178</PropertyVal>  <PropertyVal Name="Top">242</PropertyVal>  <PropertyVal Name="Width">80</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#35059;&#36348;...</PropertyVal>  <PropertyVal Name="Default">True</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>4</ControlIndex> </Control> <Control>  <ControlClass>PushButton</ControlClass>  <ItemName>PushButton</ItemName>  <PropertyVal Name="Name">PushButton2</PropertyVal>  <PropertyVal Name="Index">-2147483648</PropertyVal>  <PropertyVal Name="TabPanelIndex">0</PropertyVal>  <PropertyVal Name="Visible">True</PropertyVal>  <PropertyVal Name="Left">13</PropertyVal>  <PropertyVal Name="Top">242</PropertyVal>  <PropertyVal Name="Width">80</PropertyVal>  <PropertyVal Name="Height">20</PropertyVal>  <PropertyVal Name="HelpTag"></PropertyVal>  <PropertyVal Name="BalloonHelp"></PropertyVal>  <PropertyVal Name="DisabledBalloonHelp"></PropertyVal>  <PropertyVal Name="AutoDeactivate">True</PropertyVal>  <PropertyVal Name="LockLeft">False</PropertyVal>  <PropertyVal Name="LockTop">False</PropertyVal>  <PropertyVal Name="LockRight">False</PropertyVal>  <PropertyVal Name="LockBottom">False</PropertyVal>  <PropertyVal Name="TextFont">Osaka</PropertyVal>  <PropertyVal Name="TextSize">12</PropertyVal>  <PropertyVal Name="Bold">False</PropertyVal>  <PropertyVal Name="Italic">False</PropertyVal>  <PropertyVal Name="Underline">False</PropertyVal>  <PropertyVal Name="Caption">&#33612;&#33667;&#33683;&#33626;&#33675;</PropertyVal>  <PropertyVal Name="Default">False</PropertyVal>  <PropertyVal Name="Cancel">False</PropertyVal>  <PropertyVal Name="Enabled">True</PropertyVal>  <ControlIndex>5</ControlIndex> </Control></block><block type="Folder" ID="34"> <ObjName>Window</ObjName> <ObjContainerID>0</ObjContainerID></block><block type="Folder" ID="35"> <ObjName>Class</ObjName> <ObjContainerID>0</ObjContainerID></block><block type="Folder" ID="36"> <ObjName>Module</ObjName> <ObjContainerID>0</ObjContainerID></block><block type="Module" ID="37"> <ObjName>LabelButton</ObjName> <ObjContainerID>35</ObjContainerID> <EditBounds><Rect left="93" top="315" width="909" height="418"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>1</IsClass> <Interfaces></Interfaces> <ObjName>LabelButton</ObjName> <ObjSize>108</ObjSize> <Superclass>Canvas</Superclass> <IsInterface>0</IsInterface> <Method>  <ItemName>Redraw</ItemName>  <ItemParams>g as Graphics</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>12</StartSelRow>   <StartSelCol>32</StartSelCol>   <EndSelRow>12</EndSelRow>   <EndSelCol>32</EndSelCol>   <SourceLine>Sub Redraw(g as Graphics)</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = g.width - 1</SourceLine>   <SourceLine>h = g.height - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.ForeColor = rgb(204, 204, 255)</SourceLine>   <SourceLine>g.FillRect 0, 0, w, h</SourceLine>   <SourceLine>g.ForeColor = rgb(153, 153, 204)</SourceLine>   <SourceLine>g.DrawLine 0, h, 0, 0</SourceLine>   <SourceLine>g.DrawLine 0, 0, w, 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 255, 255)</SourceLine>   <SourceLine>'g.DrawLine w, 0, w, h</SourceLine>   <SourceLine>g.DrawLine w, h, 0, h</SourceLine>   <SourceLine></SourceLine>   <SourceLine>h = h - 1</SourceLine>   <SourceLine>if Enabled = true then</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.DrawLine 1, h - 1, 1, 1</SourceLine>   <SourceLine>g.DrawLine 1, 1, w, 1</SourceLine>   <SourceLine>g.ForeColor = rgb(153, 153, 204)</SourceLine>   <SourceLine>g.DrawLine w, 2, w, h</SourceLine>   <SourceLine>g.DrawLine w, h, 2, h</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.DrawString BalloonHelp, w / 2 - g.TextHeight / 2 * len(BalloonHelp) / 2, g.TextHeight</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Hook>  <ItemName>MouseClick</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult> </Hook> <HookInstance>  <ItemName>MouseDrag</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseDrag(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseUp</ItemName>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseUp(X As Integer, Y As Integer)</SourceLine>   <SourceLine>Redraw Graphics</SourceLine>   <SourceLine>MouseClick</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDown</ItemName>  <ItemSource>   <StartSelRow>12</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>12</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function MouseDown(X As Integer, Y As Integer) As Boolean</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = g.width - 1</SourceLine>   <SourceLine>h = g.height - 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.ForeColor = rgb(204, 204, 255)</SourceLine>   <SourceLine>'g.ForeColor = rgb(153, 153, 204)</SourceLine>   <SourceLine>g.FillRect 1, 1, w, h</SourceLine>   <SourceLine></SourceLine>   <SourceLine>'w = w - 2</SourceLine>   <SourceLine>h = h - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if Enabled = true then</SourceLine>   <SourceLine>'g.ForeColor = rgb(104, 104, 204)</SourceLine>   <SourceLine>'g.DrawLine 0, h, 0, 0</SourceLine>   <SourceLine>'g.DrawLine 0, 0, w, 0</SourceLine>   <SourceLine>'g.ForeColor = rgb(204, 204, 255)</SourceLine>   <SourceLine>'g.DrawLine w, 0, w, h</SourceLine>   <SourceLine>'g.DrawLine w, h, 0, h</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.DrawString BalloonHelp, w / 2 - g.TextHeight / 2 * len(BalloonHelp) / 2+1, g.TextHeight +1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>return true</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Paint</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>8</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>8</EndSelCol>   <SourceLine>Sub Paint(g As Graphics)</SourceLine>   <SourceLine>Redraw g</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance></block><block type="Module" ID="38"> <ObjName>Calendar</ObjName> <ObjContainerID>35</ObjContainerID> <EditBounds><Rect left="45" top="53" width="919" height="616"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>1</IsClass> <Interfaces></Interfaces> <ObjName>Calendar</ObjName> <ObjSize>176</ObjSize> <Superclass>Canvas</Superclass> <IsInterface>0</IsInterface> <Property Flags="0">Year as integer</Property> <Property Flags="0">Month as integer</Property> <Property Flags="0">Day as integer</Property> <Property Flags="0">TitleHeight as integer</Property> <Property Flags="0">SideMargin as integer</Property> <Property Flags="0">DaysLeft as integer</Property> <Property Flags="0">DaysTop as integer</Property> <Property Flags="0">DaysWidth as integer</Property> <Property Flags="0">DaysHeight as integer</Property> <Property Flags="1">PreviousDay as integer</Property> <Property Flags="0">TitleTextSize as integer</Property> <Property Flags="0">TextSize as integer</Property> <Property Flags="0">SelectTextSize as integer</Property> <Property Flags="0">Today as integer</Property> <Property Flags="0">OffScrn as Picture</Property> <Property Flags="0">CurrentMonth as integer</Property> <Property Flags="0">CurrentYear as integer</Property> <Method>  <ItemName>IsLeapYear</ItemName>  <ItemParams></ItemParams>  <ItemResult>Boolean</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>5</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function IsLeapYear() As Boolean</SourceLine>   <SourceLine>//&#33610;&#33676;&#33683;&#33639;&#37966;&#33450;&#35163;&#37966;&#33480;&#33511;True</SourceLine>   <SourceLine>return (Year mod 4 = 0) and ((Year mod 100 &lt;&gt; 0) or (Year mod 400 = 0))</SourceLine>   <SourceLine>//1920/1/1 Thursday</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetDaysOfMonth</ItemName>  <ItemParams>tMonth as Integer</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>4</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>4</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function GetDaysOfMonth(tMonth as Integer) As Integer</SourceLine>   <SourceLine>//&#33467;&#33484;&#35982;&#33484;&#37882;&#37012;&#33520;&#38356;&#33463;</SourceLine>   <SourceLine>dim days as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>days = val(Y_NthField("31,28,31,30,31,30,31,31,30,31,30,31", ",",tMonth))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35163;&#37966;&#33480;&#33511;&#33361;&#35982;&#33481;&#33360;&#35265;&#36442;</SourceLine>   <SourceLine>if (tMonth = 2) and IsLeapYear then</SourceLine>   <SourceLine>days = days + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>return days</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetDayOfWeek</ItemName>  <ItemParams>tDay as integer</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>18</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>18</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function GetDayOfWeek(tDay as integer) As Integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim days as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//1920/1/1 Thursday</SourceLine>   <SourceLine>days = 4 + 365 * (Year - 1920) + tDay - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1920 to Year - 1</SourceLine>   <SourceLine>if (i mod 4 = 0) and ((i mod 100 &lt;&gt; 0) or (i mod 400 = 0)) then</SourceLine>   <SourceLine>days = days + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1 to Month - 1</SourceLine>   <SourceLine>days = days + GetDaysOfMonth(i)</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>return days mod 7</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DrawDayCell</ItemName>  <ItemParams>tDay as integer, tAttr as integer, g as Graphics</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>69</StartSelRow>   <StartSelCol>19</StartSelCol>   <EndSelRow>69</EndSelRow>   <EndSelCol>27</EndSelCol>   <SourceLine>Sub DrawDayCell(tDay as integer, tAttr as integer, g as Graphics)</SourceLine>   <SourceLine>dim x as integer</SourceLine>   <SourceLine>dim y as integer</SourceLine>   <SourceLine>dim l as integer</SourceLine>   <SourceLine>dim t as integer</SourceLine>   <SourceLine>dim tw as integer</SourceLine>   <SourceLine>dim wc as integer//week count</SourceLine>   <SourceLine>if tDay = 0 then </SourceLine>   <SourceLine>return</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>wc = 6</SourceLine>   <SourceLine></SourceLine>   <SourceLine>x = (GetDayOfWeek(1) + tDay - 1) mod 7</SourceLine>   <SourceLine>y = (GetDayOfWeek(1) + tDay - 1) / 7 //integer&#33477;&#33440;&#33513;&#33484;&#33477;&#38623;&#33512;&#37484;&#33485;&#36521;&#37806;&#37705;&#33481;Floor&#33459;&#33514;&#33513;</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.TextFont = "Helvetica"</SourceLine>   <SourceLine>select case tAttr</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>if tDay = Today and Month = CurrentMonth and Year = CurrentYear then</SourceLine>   <SourceLine>g.Bold = true</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>g.TextSize = TextSize</SourceLine>   <SourceLine>//g.ForeColor= rgb(212, 212, 212)</SourceLine>   <SourceLine>//g.FillRect DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y,DaysWidth / 7, DaysHeight / wc</SourceLine>   <SourceLine>g.ForeColor= rgb(255, 255, 255)</SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 2, DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y </SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y, DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 2, DaysTop + DaysHeight / wc * y</SourceLine>   <SourceLine>//g.DrawLine DaysLeft + DaysWidth / 7 * x + 1, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 3, DaysLeft + DaysWidth / 7 * x + 1, DaysTop + DaysHeight / wc * y + 1 </SourceLine>   <SourceLine>//g.DrawLine DaysLeft + DaysWidth / 7 * x + 1, DaysTop + DaysHeight / wc * y + 1, DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 3, DaysTop + DaysHeight / wc * y + 1</SourceLine>   <SourceLine>g.ForeColor= rgb(168, 168, 168)</SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 1, DaysTop + DaysHeight / wc * y + 2, DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 1, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 1</SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 1, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 1, DaysLeft + DaysWidth / 7 * x + 2, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 1</SourceLine>   <SourceLine>//g.ForeColor= rgb(128, 128, 128)</SourceLine>   <SourceLine>//g.DrawLine DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 , DaysTop + DaysHeight / wc * y + 2, DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 , DaysTop + DaysHeight / wc * y + DaysHeight / wc </SourceLine>   <SourceLine>//g.DrawLine DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 , DaysTop + DaysHeight / wc * y + DaysHeight / wc , DaysLeft + DaysWidth / 7 * x + 2, DaysTop + DaysHeight / wc * y + DaysHeight / wc </SourceLine>   <SourceLine>select case x</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 0, 0)</SourceLine>   <SourceLine>case 6</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 255)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>tw = g.TextHeight / 2 * len(str(tDay)) / 2</SourceLine>   <SourceLine>g.DrawString  str(tDay), DaysLeft + DaysWidth / 7 * x +  DaysWidth / 7 / 2 - tw, DaysTop + DaysHeight / wc * y + DaysHeight / wc / 2 + g.TextHeight / 4</SourceLine>   <SourceLine>case 1</SourceLine>   <SourceLine>if tDay = Today and Month = CurrentMonth and Year = CurrentYear then</SourceLine>   <SourceLine>g.Bold = true</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>g.TextSize = SelectTextSize</SourceLine>   <SourceLine>g.ForeColor= rgb(212, 212, 255)</SourceLine>   <SourceLine>g.FillRect DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y,DaysWidth / 7, DaysHeight / wc</SourceLine>   <SourceLine>select case x</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 0, 0)</SourceLine>   <SourceLine>case 6</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 255)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>tw = g.TextHeight / 2 * len(str(tDay)) / 2</SourceLine>   <SourceLine>g.DrawString  str(tDay), DaysLeft + DaysWidth / 7 * x +  DaysWidth / 7 / 2 - tw, DaysTop + DaysHeight / wc * y + DaysHeight / wc / 2 + g.TextHeight / 4</SourceLine>   <SourceLine>case 2</SourceLine>   <SourceLine>g.DrawPicture  OffScrn, DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y, DaysWidth / 7, DaysHeight / wc, DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y, DaysWidth / 7, DaysHeight / wc</SourceLine>   <SourceLine>case 3</SourceLine>   <SourceLine>if tDay = Today and Month = CurrentMonth and Year = CurrentYear then</SourceLine>   <SourceLine>g.Bold = true</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>g.TextSize = SelectTextSize</SourceLine>   <SourceLine>g.ForeColor= rgb(212, 212, 255)</SourceLine>   <SourceLine>g.FillRect DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y,DaysWidth / 7, DaysHeight / wc</SourceLine>   <SourceLine>g.ForeColor= rgb(128, 128, 255)</SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 2, DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y </SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x, DaysTop + DaysHeight / wc * y, DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 2, DaysTop + DaysHeight / wc * y</SourceLine>   <SourceLine>g.ForeColor= rgb(168, 168, 255)</SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x + 1, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 3, DaysLeft + DaysWidth / 7 * x + 1, DaysTop + DaysHeight / wc * y + 1 </SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x + 1, DaysTop + DaysHeight / wc * y + 1, DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 3, DaysTop + DaysHeight / wc * y + 1</SourceLine>   <SourceLine>g.ForeColor= rgb(255, 255, 255)</SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 2, DaysTop + DaysHeight / wc * y + 2, DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 2, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 2</SourceLine>   <SourceLine>g.DrawLine DaysLeft + DaysWidth / 7 * x + DaysWidth / 7 - 2, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 2, DaysLeft + DaysWidth / 7 * x + 2, DaysTop + DaysHeight / wc * y + DaysHeight / wc - 2</SourceLine>   <SourceLine>select case x</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 0, 0)</SourceLine>   <SourceLine>case 6</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 255)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>tw = g.TextHeight / 2 * len(str(tDay)) / 2</SourceLine>   <SourceLine>g.DrawString  str(tDay), DaysLeft + DaysWidth / 7 * x +  DaysWidth / 7 / 2 - tw + 1, DaysTop + DaysHeight / wc * y + DaysHeight / wc / 2 + g.TextHeight / 4 + 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.Bold = false</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IncMonth</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>10</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>10</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub IncMonth()</SourceLine>   <SourceLine>Month = Month + 1</SourceLine>   <SourceLine>if Month = 13 then</SourceLine>   <SourceLine>Month = 1</SourceLine>   <SourceLine>Year = Year + 1</SourceLine>   <SourceLine>if Year &gt; 2100 then</SourceLine>   <SourceLine>Year = 2100</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>Redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecMonth</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>10</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>10</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub DecMonth()</SourceLine>   <SourceLine>Month = Month - 1</SourceLine>   <SourceLine>if Month = 0 then</SourceLine>   <SourceLine>Month = 12</SourceLine>   <SourceLine>Year = Year - 1</SourceLine>   <SourceLine>if Year &lt; 1920 then</SourceLine>   <SourceLine>Year = 1920</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>Redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>Redraw</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>48</StartSelRow>   <StartSelCol>13</StartSelCol>   <EndSelRow>48</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Sub Redraw()</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine>dim d as integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = OffScrn.Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = g.width - 1</SourceLine>   <SourceLine>h = g.height - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35050;&#38100;&#35407;&#39015;&#33129;&#35226;&#37834;&#33130;&#33484;&#38240;&#35302;</SourceLine>   <SourceLine>g.ForeColor = rgb(128, 128, 128)</SourceLine>   <SourceLine>g.DrawLine 0, h, 0, 0</SourceLine>   <SourceLine>g.DrawLine 0, 0, w, 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.DrawLIne w, 0, w, h</SourceLine>   <SourceLine>g.DrawLIne w, h, 0, h</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33361;&#38100;&#38618;&#33484;&#39015;&#33129;&#36245;&#36934;&#33130;&#33484;&#38240;&#35302;</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.DrawRect 1, 1, w - 2, h - 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#37856;&#37284;&#33520;&#38034;&#36934;&#33481;&#37736;&#33512;&#37591;&#33463;</SourceLine>   <SourceLine>g.ForeColor = rgb(212, 212, 212)</SourceLine>   <SourceLine>g.FillRect 2, 2, w- 4, h - 4</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33630;&#33603;&#33639;&#33675;&#33484;&#38240;&#35302;</SourceLine>   <SourceLine>g.ForeColor = rgb(192, 192, 192)</SourceLine>   <SourceLine>//&#36067;&#37882;&#33675;&#33115;&#33632;&#33683;&#35259;</SourceLine>   <SourceLine>g.TextFont = "Helvetica"</SourceLine>   <SourceLine>g.Bold = True</SourceLine>   <SourceLine>g.TextSize = TitleTextSize</SourceLine>   <SourceLine>g.drawstring str(year)+"."+str(month), w - g.textheight / 2 * 7, h - 8</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#38240;&#35302;&#38860;&#35046;&#36442;&#36719;</SourceLine>   <SourceLine>DaysWidth = w - 4 - SideMargin * 2</SourceLine>   <SourceLine>DaysHeight = h - TitleHeight - 4 - 8</SourceLine>   <SourceLine>DaysLeft = 2 + SideMargin</SourceLine>   <SourceLine>DaysTop = TitleHeight + 8</SourceLine>   <SourceLine>w = DaysWidth</SourceLine>   <SourceLine>h = DaysHeight</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#38762;&#37882;&#38240;&#35302;</SourceLine>   <SourceLine>g.TextFont = "Helvetica"</SourceLine>   <SourceLine>g.TextSize = TextSize</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 0 to 6</SourceLine>   <SourceLine>select case i</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 0, 0)</SourceLine>   <SourceLine>case 6</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 255)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.DrawString Y_NthField("SUN MON TUE WED THU FRI SUT", " ", i + 1), w / 7 * i + DaysLeft + w / 7 / 2 - g.TextHeight / 2 * 3 / 2, DaysTop - 16 + g.TextHeight</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#37882;&#38240;&#35302;</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1 to GetDaysOfMonth(Month)</SourceLine>   <SourceLine>DrawDayCell  i, 0, g</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>g.DrawPicture OffScrn, 0, 0, g.width, g.height, 0, 0, g.width, g.height</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Hook>  <ItemName>MouseClick</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult> </Hook> <HookInstance>  <ItemName>MouseUp</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>26</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>26</EndSelCol>   <SourceLine>Sub MouseUp(X As Integer, Y As Integer)</SourceLine>   <SourceLine>DrawDayCell previousDay, 1, Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseEnter</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseEnter()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseExit</ItemName>  <ItemSource>   <StartSelRow>2</StartSelRow>   <StartSelCol>16</StartSelCol>   <EndSelRow>2</EndSelRow>   <EndSelCol>16</EndSelCol>   <SourceLine>Sub MouseExit()</SourceLine>   <SourceLine>DrawDayCell previousDay, 2, Graphics</SourceLine>   <SourceLine>previousDay = 32</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseMove</ItemName>  <ItemSource>   <StartSelRow>14</StartSelRow>   <StartSelCol>6</StartSelCol>   <EndSelRow>14</EndSelRow>   <EndSelCol>6</EndSelCol>   <SourceLine>Sub MouseMove(X As Integer, Y As Integer)</SourceLine>   <SourceLine>dim d as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>if X &gt; DaysLeft and X &lt; (DaysLeft + DaysWidth) and Y &gt; DaysTop and Y &lt; (DaysTop + DaysHeight) then</SourceLine>   <SourceLine>d = (X - DaysLeft) / (DaysWidth / 7) + Floor((Y - DaysTop) / Floor(DaysHeight / 6)) * 7 - GetDayOfWeek(1) +1</SourceLine>   <SourceLine>if d &lt; 1 or d &gt; GetDaysOfMonth(Month) then</SourceLine>   <SourceLine>d = 0</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>if d &lt;&gt; previousDay then</SourceLine>   <SourceLine>//DrawDayCell previousDay, 2, g</SourceLine>   <SourceLine>//DrawDayCell d, 1, g</SourceLine>   <SourceLine>previousDay = d</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>//DrawDayCell previousDay, 2, g</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDown</ItemName>  <ItemSource>   <StartSelRow>12</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>12</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function MouseDown(X As Integer, Y As Integer) As Boolean</SourceLine>   <SourceLine>dim d as integer</SourceLine>   <SourceLine>if X &gt; DaysLeft and X &lt; (DaysLeft + DaysWidth) and Y &gt; DaysTop and Y &lt; (DaysTop + DaysHeight) then</SourceLine>   <SourceLine>d = (X - DaysLeft) / (DaysWidth / 7) + Floor((Y - DaysTop) / Floor(DaysHeight / 6)) * 7 - GetDayOfWeek(1) + 1</SourceLine>   <SourceLine>if d &gt;= 1 and d &lt;= GetDaysOfMonth(Month) then</SourceLine>   <SourceLine>DrawDayCell d, 3, Graphics</SourceLine>   <SourceLine>day = d</SourceLine>   <SourceLine>MouseClick()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>return true</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Close</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Close()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Open</ItemName>  <ItemSource>   <StartSelRow>20</StartSelRow>   <StartSelCol>5</StartSelCol>   <EndSelRow>20</EndSelRow>   <EndSelCol>13</EndSelCol>   <SourceLine>Sub Open()</SourceLine>   <SourceLine>dim d as Date</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>offScrn = newPicture(g.width, g.height,16)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>d = new Date</SourceLine>   <SourceLine>Year = d.Year</SourceLine>   <SourceLine>Month = d.Month</SourceLine>   <SourceLine>Day = d.Day</SourceLine>   <SourceLine>CurrentYear = d.year</SourceLine>   <SourceLine>CurrentMonth = d.Month</SourceLine>   <SourceLine>Today = d.day</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>SideMargin = 8</SourceLine>   <SourceLine>TitleHeight = 8</SourceLine>   <SourceLine>TextSize = 12</SourceLine>   <SourceLine>SelectTextSize = 12</SourceLine>   <SourceLine>TitleTextSize = 36</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Paint</ItemName>  <ItemSource>   <StartSelRow>2</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>2</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Paint(g As Graphics)</SourceLine>   <SourceLine>g.DrawPicture OffScrn, 0, 0, g.width, g.height, 0, 0, g.width, g.height</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance></block><block type="Module" ID="39"> <ObjName>MonthCalendar</ObjName> <ObjContainerID>35</ObjContainerID> <EditBounds><Rect left="31" top="55" width="922" height="659"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>1</IsClass> <Interfaces></Interfaces> <ObjName>MonthCalendar</ObjName> <ObjSize>132</ObjSize> <Superclass>Canvas</Superclass> <IsInterface>0</IsInterface> <Property Flags="0">Year as integer</Property> <Property Flags="0">Month as integer</Property> <Property Flags="0">OffScrn as Picture</Property> <Property Flags="0">CurrentMonth as integer</Property> <Property Flags="0">CurrentYear as integer</Property> <Property Flags="0">Calendar(3) as Picture</Property> <Method>  <ItemName>DrawCalendar</ItemName>  <ItemParams>index as integer, tYear as integer, tMonth as integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>74</StartSelRow>   <StartSelCol>2</StartSelCol>   <EndSelRow>74</EndSelRow>   <EndSelCol>10</EndSelCol>   <SourceLine>Sub DrawCalendar(index as integer, tYear as integer, tMonth as integer)</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim x as integer</SourceLine>   <SourceLine>dim y as integer</SourceLine>   <SourceLine>dim t as integer</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine>dim l as integer</SourceLine>   <SourceLine>dim w as integer</SourceLine>   <SourceLine>dim r as integer</SourceLine>   <SourceLine>dim b as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Calendar(index).Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>l = 4</SourceLine>   <SourceLine>t = 4</SourceLine>   <SourceLine>h = g.height - 8</SourceLine>   <SourceLine>w = g.width - 8</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.ForeColor = rgb(192, 192, 192)</SourceLine>   <SourceLine>g.FillRect 0, 0, g.width, g.height</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#38762;&#37882;&#38240;&#35302;</SourceLine>   <SourceLine>g.TextFont = "Osaka&#33148;&#37785;&#38301;"</SourceLine>   <SourceLine>g.TextSize = 9</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 0 to 6</SourceLine>   <SourceLine>select case i</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 128, 128)</SourceLine>   <SourceLine>case 6</SourceLine>   <SourceLine>g.ForeColor = rgb(128, 128, 255)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.ForeColor = rgb(128, 128, 128)</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.DrawString Y_NthField("SUN MON TUE WED THU FRI SUT", " ", i + 1), l + w / 7 * i + w / 7 / 2 - g.TextHeight / 2 * 3 / 2, t + g.TextHeight</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>h = h - 8</SourceLine>   <SourceLine>t = t + 8</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33610;&#33676;&#33683;&#33631;&#33115;&#38240;&#35302;</SourceLine>   <SourceLine>x = (GetDayOfWeek(tYear, tMonth)) mod 7</SourceLine>   <SourceLine>y = (GetDayOfWeek(tYear, tMonth)) / 7 //integer&#33477;&#33440;&#33513;&#33484;&#33477;&#38623;&#33512;&#37484;&#33485;&#36521;&#37806;&#37705;&#33481;Floor&#33459;&#33514;&#33513;</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1 to GetDaysOfMonth(tYear, tMonth)</SourceLine>   <SourceLine>select case x</SourceLine>   <SourceLine>case 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 128, 128)</SourceLine>   <SourceLine>case 6</SourceLine>   <SourceLine>g.ForeColor = rgb(128, 128, 255)</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.ForeColor = rgb(128, 128, 128)</SourceLine>   <SourceLine>end select</SourceLine>   <SourceLine>g.DrawString str(i), l + w / 7 * x + w / 7 / 2 - g.TextHeight / 2 * len(str(i)) / 2, t + h / 6 * y + h / 6 / 2 + g.TextHeight</SourceLine>   <SourceLine>x = x + 1</SourceLine>   <SourceLine>if x &gt; 6 then</SourceLine>   <SourceLine>x = 0</SourceLine>   <SourceLine>y = y + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>h = h + 8</SourceLine>   <SourceLine>t = t - 8</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33630;&#33603;&#33639;&#33675;&#33484;&#38240;&#35302;</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.TextFont = "Helvetica"</SourceLine>   <SourceLine>g.Bold = True</SourceLine>   <SourceLine>g.TextSize = 48</SourceLine>   <SourceLine>g.drawstring str(tMonth), l + w / 2  - g.textheight / 2 * len(str(tMonth)) / 2, t + h / 2 + g.textheight / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.Bold = False</SourceLine>   <SourceLine>g.TextSize = 24</SourceLine>   <SourceLine>if tMonth = 1 then</SourceLine>   <SourceLine>g.DrawString str(tYear) + ".", l, t + g.textheight</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IsLeapYear</ItemName>  <ItemParams>tYear as integer</ItemParams>  <ItemResult>Boolean</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>4</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function IsLeapYear(tYear as integer) As Boolean</SourceLine>   <SourceLine>//&#33610;&#33676;&#33683;&#33639;&#37966;&#33450;&#35163;&#37966;&#33480;&#33511;True</SourceLine>   <SourceLine>return (tYear mod 4 = 0) and ((tYear mod 100 &lt;&gt; 0) or (tYear mod 400 = 0))</SourceLine>   <SourceLine>//1920/1/1 Thursday</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetDaysOfMonth</ItemName>  <ItemParams>tYear as integer, tMonth as integer</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>4</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>4</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function GetDaysOfMonth(tYear as integer, tMonth as integer) As Integer</SourceLine>   <SourceLine>//&#33467;&#33484;&#35982;&#33484;&#37882;&#37012;&#33520;&#38356;&#33463;</SourceLine>   <SourceLine>dim days as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>days = val(Y_NthField("31,28,31,30,31,30,31,31,30,31,30,31", ",",tMonth))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35163;&#37966;&#33480;&#33511;&#33361;&#35982;&#33481;&#33360;&#35265;&#36442;</SourceLine>   <SourceLine>if (tMonth = 2) and IsLeapYear(tYear) then</SourceLine>   <SourceLine>days = days + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>return days</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetDayOfWeek</ItemName>  <ItemParams>tYear as integer, tMonth as integer</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>15</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>15</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function GetDayOfWeek(tYear as integer, tMonth as integer) As Integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim days as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//1920/1/1 Thursday</SourceLine>   <SourceLine>days = 4 + 365 * (tYear - 1920)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1920 to tYear - 1</SourceLine>   <SourceLine>if (i mod 4 = 0) and ((i mod 100 &lt;&gt; 0) or (i mod 400 = 0)) then</SourceLine>   <SourceLine>days = days + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1 to tMonth - 1</SourceLine>   <SourceLine>days = days + GetDaysOfMonth(tYear, i)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>return days mod 7</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecMonth</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>46</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub DecMonth()</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine>dim tCurrentYear as integer</SourceLine>   <SourceLine>dim tCurrentMonth as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>// &#36027;&#36317;&#33484;&#35982;&#33520;&#33360;&#33474;&#36024;&#33511;&#33463;</SourceLine>   <SourceLine>CurrentMonth = CurrentMonth - 1</SourceLine>   <SourceLine>if CurrentMonth = 0 then</SourceLine>   <SourceLine>CurrentMonth = 12</SourceLine>   <SourceLine>CurrentYear = CurrentYear - 1</SourceLine>   <SourceLine>if CurrentYear &lt; 1920 then</SourceLine>   <SourceLine>CurrentYear = 1920</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#36958;&#33521;&#37510;&#33478;&#35141;&#37284;&#33484;&#33610;&#33676;&#33683;&#33631;&#33115;&#33520;&#38240;&#33451;&#37564;&#33463;</SourceLine>   <SourceLine>Calendar(2).Graphics.DrawPicture Calendar(1), 0, 0</SourceLine>   <SourceLine>Calendar(1).Graphics.DrawPicture Calendar(0), 0, 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35050;&#38100;&#36278;&#33485;&#33459;&#33511;&#33481;&#33360;&#33474;&#37199;&#33484;&#35982;&#33480;&#33484;&#33477;&#36027;&#36317;&#33484;&#37966;&#35982;&#33520;&#37330;&#38128;&#33461;&#33476;&#35982;&#33520;&#36024;&#33511;&#33463;</SourceLine>   <SourceLine>tCurrentYear = CurrentYear</SourceLine>   <SourceLine>tCurrentMonth = CurrentMonth</SourceLine>   <SourceLine>CurrentMonth = CurrentMonth - 1</SourceLine>   <SourceLine>if CurrentMonth = 0 then</SourceLine>   <SourceLine>CurrentMonth = 12</SourceLine>   <SourceLine>CurrentYear = CurrentYear - 1</SourceLine>   <SourceLine>if CurrentYear &lt; 1920 then</SourceLine>   <SourceLine>CurrentYear = 1920</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>//&#35050;&#38100;&#36278;&#33484;&#33610;&#33676;&#33683;&#33631;&#33115;&#33520;&#38240;&#35302;</SourceLine>   <SourceLine>DrawCalendar 0, CurrentYear, CurrentMonth</SourceLine>   <SourceLine>//&#37966;&#35982;&#33520;&#36019;&#33481;&#38623;&#33463;</SourceLine>   <SourceLine>CurrentYear = tCurrentYear</SourceLine>   <SourceLine>CurrentMonth = tCurrentMonth</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33610;&#33676;&#33683;&#33631;&#33115;&#37203;&#37324;&#33520;&#38240;&#35302;</SourceLine>   <SourceLine>DrawAll()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33624;&#33614;&#33677;&#33115;&#33675;&#36744;&#38813;</SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>for i = 1 to g.width / 3 step 2</SourceLine>   <SourceLine>g.DrawPicture OffScrn, 2, 2, g.width / 3 * 2 + i - 2, g.height - 4, g.width / 3 * 1 - i + 2, 2, g.width / 3 * 2 + i - 2, g.height - 4</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>g.DrawPicture OffScrn, 0, 0, g.width, g.height, 0, 0, g.width, g.height</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IncMonth</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>49</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>49</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub IncMonth()</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine>dim tCurrentYear as integer</SourceLine>   <SourceLine>dim tCurrentMonth as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>// &#36027;&#36317;&#33484;&#35982;&#33520;&#33360;&#33474;&#37277;&#33506;&#33463;</SourceLine>   <SourceLine>CurrentMonth = CurrentMonth + 1</SourceLine>   <SourceLine>if CurrentMonth = 13 then</SourceLine>   <SourceLine>CurrentMonth = 1</SourceLine>   <SourceLine>CurrentYear = CurrentYear + 1</SourceLine>   <SourceLine>if CurrentYear &gt; 2100 then</SourceLine>   <SourceLine>CurrentYear = 2100</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#36958;&#33521;&#37510;&#33478;&#36278;&#37284;&#33484;&#33610;&#33676;&#33683;&#33631;&#33115;&#33520;&#38240;&#33451;&#37564;&#33463;</SourceLine>   <SourceLine>Calendar(0).Graphics.DrawPicture Calendar(1), 0, 0</SourceLine>   <SourceLine>Calendar(1).Graphics.DrawPicture Calendar(2), 0, 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35050;&#38100;&#35141;&#33485;&#33459;&#33511;&#33481;&#33360;&#33474;&#36511;&#33484;&#35982;&#33480;&#33484;&#33477;&#36027;&#36317;&#33484;&#37966;&#35982;&#33520;&#37330;&#38128;&#33461;&#33476;&#35982;&#33520;&#37277;&#33506;&#33463;</SourceLine>   <SourceLine>tCurrentYear = CurrentYear</SourceLine>   <SourceLine>tCurrentMonth = CurrentMonth</SourceLine>   <SourceLine>CurrentMonth = CurrentMonth + 1</SourceLine>   <SourceLine>if CurrentMonth = 13 then</SourceLine>   <SourceLine>CurrentMonth = 1</SourceLine>   <SourceLine>CurrentYear = CurrentYear + 1</SourceLine>   <SourceLine>if CurrentYear &gt; 2100 then</SourceLine>   <SourceLine>CurrentYear = 2100</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>//&#35050;&#38100;&#35141;&#33484;&#33610;&#33676;&#33683;&#33631;&#33115;&#33520;&#38240;&#35302;</SourceLine>   <SourceLine>DrawCalendar 2, CurrentYear, CurrentMonth</SourceLine>   <SourceLine>//&#37966;&#35982;&#33520;&#36019;&#33481;&#38623;&#33463;</SourceLine>   <SourceLine>CurrentYear = tCurrentYear</SourceLine>   <SourceLine>CurrentMonth = tCurrentMonth</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33610;&#33676;&#33683;&#33631;&#33115;&#37203;&#37324;&#33520;&#38240;&#35302;</SourceLine>   <SourceLine>DrawAll()</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>//for i = 1 to g.width / 3 // step g.width / 10</SourceLine>   <SourceLine>//g.DrawPicture OffScrn, 2, 2, g.width - i - 4, g.height - 4, i + 2, 2, g.width - i - 4, g.height - 4</SourceLine>   <SourceLine>//next</SourceLine>   <SourceLine>for i = 1 to g.width / 3 step 2 // step g.width / 10</SourceLine>   <SourceLine>g.DrawPicture OffScrn, g.width / 3 * 1 - i + 2, 2, g.width / 3 * 2 + i - 4, g.height - 4, 2, 2, g.width / 3 * 2 + i - 4, g.height - 4</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>g.DrawPicture OffScrn, 0, 0, g.width, g.height, 0, 0, g.width, g.height</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>Redraw</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>8</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>8</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub Redraw()</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>MakeCalendar()</SourceLine>   <SourceLine>DrawAll()</SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>g.DrawPicture OffScrn, 0, 0, g.width, g.height, 0, 0, g.width, g.height</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DrawAll</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>69</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>69</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub DrawAll()</SourceLine>   <SourceLine>dim w as double</SourceLine>   <SourceLine>dim h as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>dim l as integer</SourceLine>   <SourceLine>dim t as integer</SourceLine>   <SourceLine>dim r as integer</SourceLine>   <SourceLine>dim b as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>dim d as integer</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim j as double</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim tMonth as integer</SourceLine>   <SourceLine>dim tYear as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>tYear = CurrentYear</SourceLine>   <SourceLine>tMonth = CurrentMonth</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//1&#33686;&#35982;&#38240;&#35302;</SourceLine>   <SourceLine>CurrentMonth = CurrentMonth - 1</SourceLine>   <SourceLine>if CurrentMonth = 0 then</SourceLine>   <SourceLine>CurrentMonth = 12</SourceLine>   <SourceLine>CurrentYear = CurrentYear - 1</SourceLine>   <SourceLine>if CurrentYear &lt; 1920 then</SourceLine>   <SourceLine>CurrentYear = 1920</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = OffScrn.Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = g.width - 1</SourceLine>   <SourceLine>h = g.height - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35050;&#38100;&#35407;&#39015;&#33129;&#35226;&#37834;&#33130;&#33484;&#38240;&#35302;</SourceLine>   <SourceLine>g.ForeColor = rgb(128, 128, 128)</SourceLine>   <SourceLine>g.DrawLine 0, h, 0, 0</SourceLine>   <SourceLine>g.DrawLine 0, 0, w, 0</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.DrawLIne w, 0, w, h</SourceLine>   <SourceLine>g.DrawLIne w, h, 0, h</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33361;&#38100;&#38618;&#33484;&#39015;&#33129;&#36245;&#36934;&#33130;&#33484;&#38240;&#35302;</SourceLine>   <SourceLine>g.ForeColor = rgb(0, 0, 0)</SourceLine>   <SourceLine>g.DrawRect 1, 1, w - 2, h - 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#37856;&#37284;&#33520;&#38034;&#36934;&#33481;&#37736;&#33512;&#37591;&#33463;</SourceLine>   <SourceLine>g.ForeColor = rgb(192, 192, 192)</SourceLine>   <SourceLine>g.FillRect 2, 2, w- 3, h - 3</SourceLine>   <SourceLine></SourceLine>   <SourceLine>w = w - 3</SourceLine>   <SourceLine>h = h - 3</SourceLine>   <SourceLine>w = Round(w / 3)</SourceLine>   <SourceLine>for i = 0 to 2</SourceLine>   <SourceLine>l = w*i+ 2</SourceLine>   <SourceLine>t = 2</SourceLine>   <SourceLine>r = l+w-1</SourceLine>   <SourceLine>b = t+h-1</SourceLine>   <SourceLine>if CurrentYear = Year and CurrentMonth = Month then</SourceLine>   <SourceLine>//g.ForeColor = rgb(192, 192, 192)</SourceLine>   <SourceLine>//g.FillRect l, t, width+1, height+1</SourceLine>   <SourceLine>g.DrawPicture Calendar(i), l+5, t+5</SourceLine>   <SourceLine></SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>g.ForeColor = rgb(255, 255, 255)</SourceLine>   <SourceLine>g.DrawLine l+1, t+1, l+1, b-1</SourceLine>   <SourceLine>g.DrawLine l+1, t+1, r-1, t+1</SourceLine>   <SourceLine>g.ForeColor = rgb(160, 160, 160)</SourceLine>   <SourceLine>g.DrawLine r-1, t+1, r-1, b-1</SourceLine>   <SourceLine>g.DrawLine r-1, b-1, l+1, b-1</SourceLine>   <SourceLine>g.ForeColor = rgb(128, 128, 128)</SourceLine>   <SourceLine>g.DrawLine r, t, r, b</SourceLine>   <SourceLine>g.DrawLine r, b, l, b</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g.DrawPicture Calendar(i), l+4, t+4</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>CurrentMonth = CurrentMonth + 1</SourceLine>   <SourceLine>if CurrentMonth = 13 then</SourceLine>   <SourceLine>CurrentMonth = 1</SourceLine>   <SourceLine>CurrentYear = CurrentYear + 1</SourceLine>   <SourceLine>if CurrentYear &gt; 2100 then</SourceLine>   <SourceLine>CurrentYear = 2100</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>CurrentYear = tYear</SourceLine>   <SourceLine>CurrentMonth = tMonth</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//g.DrawPicture Calendar(0), Round(w / 3 * 0) + 2, 0</SourceLine>   <SourceLine>//g.DrawPicture Calendar(1), Round(w / 3 * 1) + 2, 0</SourceLine>   <SourceLine>//g.DrawPicture Calendar(2), Round(w / 3 * 2) + 2, 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MakeCalendar</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>34</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>34</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MakeCalendar()</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim tMonth as integer</SourceLine>   <SourceLine>dim tYear as integer</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>tYear = CurrentYear</SourceLine>   <SourceLine>tMonth = CurrentMonth</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//1&#33686;&#35982;&#38240;&#35302;</SourceLine>   <SourceLine>CurrentMonth = CurrentMonth - 1</SourceLine>   <SourceLine>if CurrentMonth = 0 then</SourceLine>   <SourceLine>CurrentMonth = 12</SourceLine>   <SourceLine>CurrentYear = CurrentYear - 1</SourceLine>   <SourceLine>if CurrentYear &lt; 1920 then</SourceLine>   <SourceLine>CurrentYear = 1920</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 0 to 2</SourceLine>   <SourceLine>DrawCalendar i, CurrentYear, CurrentMonth</SourceLine>   <SourceLine>CurrentMonth = CurrentMonth + 1</SourceLine>   <SourceLine>if CurrentMonth = 13 then</SourceLine>   <SourceLine>CurrentMonth = 1</SourceLine>   <SourceLine>CurrentYear = CurrentYear + 1</SourceLine>   <SourceLine>if CurrentYear &gt; 2100 then</SourceLine>   <SourceLine>CurrentYear = 2100</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine>CurrentYear = tYear</SourceLine>   <SourceLine>CurrentMonth = tMonth</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Hook>  <ItemName>MouseClick</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult> </Hook> <HookInstance>  <ItemName>MouseDrag</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub MouseDrag(X As Integer, Y As Integer)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>MouseDown</ItemName>  <ItemSource>   <StartSelRow>18</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>18</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function MouseDown(X As Integer, Y As Integer) As Boolean</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i = 1 to 3</SourceLine>   <SourceLine>if x &lt; g.width / 3 * i then</SourceLine>   <SourceLine>Year = CurrentYear</SourceLine>   <SourceLine>Month = CurrentMonth + i - 2</SourceLine>   <SourceLine>if Month = 0 then</SourceLine>   <SourceLine>Month = 12</SourceLine>   <SourceLine>Year = CurrentYear - 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>if Month = 13 then</SourceLine>   <SourceLine>Month = 1</SourceLine>   <SourceLine>Year = CurrentYear + 1</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>DrawAll()</SourceLine>   <SourceLine>g.DrawPicture OffScrn, 0, 0, g.width, g.height, 0, 0, g.width, g.height</SourceLine>   <SourceLine></SourceLine>   <SourceLine>MouseClick()</SourceLine>   <SourceLine>return true</SourceLine>   <SourceLine></SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine>next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Open</ItemName>  <ItemSource>   <StartSelRow>5</StartSelRow>   <StartSelCol>10</StartSelCol>   <EndSelRow>5</EndSelRow>   <EndSelCol>20</EndSelCol>   <SourceLine>Sub Open()</SourceLine>   <SourceLine>dim d as date</SourceLine>   <SourceLine>dim g as Graphics</SourceLine>   <SourceLine></SourceLine>   <SourceLine>g = Graphics</SourceLine>   <SourceLine>offScrn = newPicture(g.width, g.height,16)</SourceLine>   <SourceLine>Calendar(0) = newPicture((g.width-4)/3-8, g.height-4-8, 16)</SourceLine>   <SourceLine>Calendar(1) = newPicture((g.width-4)/3-8, g.height-4-8, 16)</SourceLine>   <SourceLine>Calendar(2) = newPicture((g.width-4)/3-8, g.height-4-8, 16)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>d = new date</SourceLine>   <SourceLine>Year = d.Year</SourceLine>   <SourceLine>Month = d.Month</SourceLine>   <SourceLine>CurrentYear = Year</SourceLine>   <SourceLine>CurrentMonth = Month</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance> <HookInstance>  <ItemName>Paint</ItemName>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>6</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>6</EndSelCol>   <SourceLine>Sub Paint(g As Graphics)</SourceLine>   <SourceLine>Redraw</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </HookInstance></block><block type="Folder" ID="40"> <ObjName>Graphics</ObjName> <ObjContainerID>0</ObjContainerID></block><block type="Module" ID="-1221575513"> <ObjName>Function</ObjName> <ObjContainerID>36</ObjContainerID> <EditBounds><Rect left="230" top="201" width="1057" height="652"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>0</IsClass> <Interfaces></Interfaces> <ObjName>Function</ObjName> <ObjSize>100</ObjSize> <IsInterface>0</IsInterface> <Property Flags="0">gScreenX as Integer</Property> <Property Flags="0">gScreenY as Integer</Property> <Property Flags="0">Vre133 as String</Property> <Property Flags="0">gDecimal as Integer</Property> <Property Flags="1">lHeadFootLine(3) as Integer</Property> <Property Flags="1">lMaxPage(1) as Integer</Property> <Property Flags="0">lPageLineNumber(1) as Integer</Property> <Property Flags="0">lSegmentNumber as Integer</Property> <Property Flags="0">lSegmentString(50) as String</Property> <Property Flags="1">lSegmentPosition(50) as String</Property> <Property Flags="0">lSegmentSize(50) as Integer</Property> <Property Flags="0">lSegmentSizeBuffer(50) as Integer</Property> <Property Flags="1">lGraphHeight as Integer</Property> <Property Flags="0">lPrintData(50) as Integer</Property> <Property Flags="1">lCellSegment as String</Property> <Property Flags="0">lPrintFont(1) as String</Property> <Property Flags="0">gBasicPath as String</Property> <Property Flags="0">gVersionString as String</Property> <Property Flags="0">gPrintSettings as String</Property> <Method>  <ItemName>gsPrintV</ItemName>  <ItemParams>tGraph as Graphics,tObjL as Integer,tObjT as Integer,tObjR as Integer,tObjB as Integer,tFormat as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>18</StartSelRow>   <StartSelCol>4</StartSelCol>   <EndSelRow>18</EndSelRow>   <EndSelCol>4</EndSelCol>   <SourceLine>Sub gsPrintV(tGraph as Graphics,tObjL as Integer,tObjT as Integer,tObjR as Integer,tObjB as Integer,tFormat as String)</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine>Dim tLeftPoint as Integer</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>OutPlotP tGraph,tObjL,tObjT,tObjR,tObjT</SourceLine>   <SourceLine>OutPlotP tGraph,tObjL,tObjB,tObjR,tObjB</SourceLine>   <SourceLine>OutPlotP tGraph,tObjL,tObjT,tObjL,tObjB</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tLeftPoint = tObjL</SourceLine>   <SourceLine>For i = 1 To 255</SourceLine>   <SourceLine>tString = Y_NthField(tFormat,";",i)</SourceLine>   <SourceLine>If tString = "" Then</SourceLine>   <SourceLine>i = 255</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tLeftPoint = tLeftPoint + Val(tString)</SourceLine>   <SourceLine>OutPlotP tGraph,tLeftPoint,tObjT,tLeftPoint,tObjB</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>SetOrg</ItemName>  <ItemParams>tX as Integer,tY as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>8</EndSelCol>   <SourceLine>Sub SetOrg(tX as Integer,tY as Integer)</SourceLine>   <SourceLine>gScreenX = tX</SourceLine>   <SourceLine>gScreenY = tY</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>OutPlot</ItemName>  <ItemParams>tGraph as Graphics,tObjL as Integer,tObjT as Integer,tObjR as Integer,tObjB as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>66</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>66</EndSelCol>   <SourceLine>Sub OutPlot(tGraph as Graphics,tObjL as Integer,tObjT as Integer,tObjR as Integer,tObjB as Integer)</SourceLine>   <SourceLine>tGraph.DrawLine tObjL + gScreenX,tObjT + gScreenY,tObjR + gScreenX,tObjB + gScreenY</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>OutPrint</ItemName>  <ItemParams>tGraph as Graphics,tX as Integer,tY as Integer,tString as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>39</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>39</EndSelCol>   <SourceLine>Sub OutPrint(tGraph as Graphics,tX as Integer,tY as Integer,tString as String)</SourceLine>   <SourceLine>tGraph.DrawString tString,tX + gScreenX,tY + gScreenY</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ZeroSup</ItemName>  <ItemParams>tNumerical as Double,tKeta as Integer</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>54</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>59</EndSelCol>   <SourceLine>Function ZeroSup(tNumerical as Double,tKeta as Integer) As String</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = "0000000000000000000000" + Str(tNumerical)//Right(Str(tNumerical),Len(Str(tNumerical)) - 1)</SourceLine>   <SourceLine>tString = RightB(tString,tKeta)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>CenterPrint</ItemName>  <ItemParams>tGraph as Graphics,tString as String,tLeft as Integer,tRight as Integer,tTop as Integer,tBtm as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>13</EndSelRow>   <EndSelCol>64</EndSelCol>   <SourceLine>Sub CenterPrint(tGraph as Graphics,tString as String,tLeft as Integer,tRight as Integer,tTop as Integer,tBtm as Integer)</SourceLine>   <SourceLine>Dim tPrintSizeLR as Integer</SourceLine>   <SourceLine>Dim tPrintSizeTB as Integer</SourceLine>   <SourceLine>Dim tStringSize as Integer</SourceLine>   <SourceLine>Dim tGomi as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tStringSize = tGraph.StringWidth(tString)</SourceLine>   <SourceLine>tPrintSizeLR = ((tRight - tLeft) - tStringSize) / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGomi = LeftB(tString,2)</SourceLine>   <SourceLine>tStringSize = tGraph.StringWidth(tGomi)</SourceLine>   <SourceLine>tPrintSizeTB = ((tBtm - tTop) - tStringSize) / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>OutPrint tGraph,tLeft + tPrintSizeLR,tBtm - tPrintSizeTB,tString</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>EvenlyPrint</ItemName>  <ItemParams>tGraph as Graphics,tX as Integer,tY as Integer,tString as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>40</StartSelCol>   <EndSelRow>6</EndSelRow>   <EndSelCol>40</EndSelCol>   <SourceLine>Sub EvenlyPrint(tGraph as Graphics,tX as Integer,tY as Integer,tString as String)</SourceLine>   <SourceLine>Dim tFontSize as Integer</SourceLine>   <SourceLine>Dim tXzahyou as Integer</SourceLine>   <SourceLine>tFontSize = tGraph.StringWidth(tString)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tXzahyou = tX - tFontSize</SourceLine>   <SourceLine>OutPrintP tGraph,tXzahyou,tY,tString,"L"</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>SpaceSup</ItemName>  <ItemParams>tNumerical as String,tKeta as Integer</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>3</StartSelRow>   <StartSelCol>60</StartSelCol>   <EndSelRow>3</EndSelRow>   <EndSelCol>61</EndSelCol>   <SourceLine>Function SpaceSup(tNumerical as String,tKeta as Integer) As String</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = "                                                                                                                                                      " + tNumerical</SourceLine>   <SourceLine>tString = RightB(tString,tKeta)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetMiddleDate</ItemName>  <ItemParams>tDate as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>9</StartSelRow>   <StartSelCol>4</StartSelCol>   <EndSelRow>9</EndSelRow>   <EndSelCol>4</EndSelCol>   <SourceLine>Function GetMiddleDate(tDate as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;4&#35973;&#37052;&#38895;&#33520;&#38356;&#33463;&#33088;&#35064;&#33451;&#37012;&#33450;60&#35016;&#36835;&#33480;&#33511;19**&#33090;&#35016;&#35258;&#33480;&#33511;20**&#33520;&#38356;&#33463;&#129;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;2&#35973;&#33484;&#38326;&#36506;&#38897;&#33129;&#37012;&#37484;&#33484;&#33501;&#33130;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;4&#35973;&#33484;&#38326;&#36506;&#38897;&#33129;4&#35973;&#37052;&#38895;&#33130;</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If Val(LeftB(tDate,2)) &gt;= 60 Then</SourceLine>   <SourceLine>tString = "19" + tDate</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tString = "20" + tDate</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>RemoveString</ItemName>  <ItemParams>tString as String,tRemoveString as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>12</StartSelRow>   <StartSelCol>42</StartSelCol>   <EndSelRow>12</EndSelRow>   <EndSelCol>42</EndSelCol>   <SourceLine>Function RemoveString(tString as String,tRemoveString as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#38326;&#36506;&#38897;&#33449;&#33511;&#33089;&#36471;&#37608;&#33459;&#33514;&#33469;&#38326;&#36506;&#35016;&#35407;&#33520;&#36582;&#33512;&#36719;&#33463;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#38326;&#36506;&#38897;&#33089;&#38326;&#36506;&#38897;&#33449;&#33511;&#36582;&#33512;&#36764;&#33451;&#33469;&#33442;&#38326;&#36506;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#36582;&#33512;&#36764;&#33449;&#33514;&#33469;&#38326;&#36506;&#38897;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/--/--(---)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/09/23(Wed)&#33088;&#33457;&#33484;&#33618;&#33665;&#33683;&#33639;&#33520;&#38260;&#33455;&#33469;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine>Dim tReturnString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tReturnString = ""</SourceLine>   <SourceLine>For i = 1 to LenB(tString)</SourceLine>   <SourceLine>tReturnString = tReturnString + Y_NthField(tString,tRemoveString,i)</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tReturnString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ChangeSequence</ItemName>  <ItemParams>tString as String</ItemParams>  <ItemResult>Double</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>10</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>10</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Function ChangeSequence(tString as String) As Double</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#33610;&#33683;&#33661;&#33484;&#36268;&#33462;&#33473;&#33469;&#37012;&#36506;&#38326;&#36506;&#38897;&#33520;Double&#33481;&#33461;&#33476;&#38356;&#33463;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;String</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;Double</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/07/03(Fri)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tReturnDouble as Double</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tReturnDouble = Val(RemoveString(tString,","))</SourceLine>   <SourceLine>Return tReturnDouble</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ChangeDateInteger</ItemName>  <ItemParams>tDateString as String</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>103</StartSelCol>   <EndSelRow>6</EndSelRow>   <EndSelCol>103</EndSelCol>   <SourceLine>Function ChangeDateInteger(tDateString as String) As Integer</SourceLine>   <SourceLine>//&#37882;&#38260;&#33455;&#33520;&#36595;&#33455;&#36582;&#33473;&#33476;8&#35973;&#37038;&#37012;&#33481;&#33461;&#33476;&#38356;&#33463;</SourceLine>   <SourceLine>//&#37882;&#38260;&#33455;&#33484;&#38326;&#36506;&#38897;&#33485;"."&#33477;&#33504;"/"&#33477;&#33504;&#35261;&#33477;&#33504;&#36455;&#38768;&#35266;</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine>Dim tInteger as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = LeftB(tDateString,4) + ZeroSup(Val(Y_NthField(tDateString,"/",2)),2) + ZeroSup(Val(Y_NthField(tDateString,"/",3)),2)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tInteger = Val(tString)</SourceLine>   <SourceLine>Return tInteger</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ChangeDateYMD</ItemName>  <ItemParams>tDateString as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>8</StartSelRow>   <StartSelCol>140</StartSelCol>   <EndSelRow>8</EndSelRow>   <EndSelCol>140</EndSelCol>   <SourceLine>Function ChangeDateYMD(tDateString as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;ShortDate&#33520;&#36595;&#33455;&#33476;YY/MM/DD&#33477;&#38356;&#33463;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;ShortDate</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/07/03(Fri)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = ZeroSup(Val(Y_NthField(tDateString,".",1)),2) + "/" + ZeroSup(Val(Y_NthField(tDateString,".",2)),2) + "/" + ZeroSup(Val(Y_NthField(tDateString,".",3)),2)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ChangeDateString</ItemName>  <ItemParams>tDateString as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>103</StartSelCol>   <EndSelRow>6</EndSelRow>   <EndSelCol>103</EndSelCol>   <SourceLine>Function ChangeDateString(tDateString as String) As String</SourceLine>   <SourceLine>//&#37882;&#38260;&#33455;&#33520;&#36595;&#33455;&#36582;&#33473;&#33476;8&#35973;&#38326;&#36506;&#38897;&#33481;&#33461;&#33476;&#38356;&#33463;</SourceLine>   <SourceLine>//&#37882;&#38260;&#33455;&#33484;&#38326;&#36506;&#38897;&#33485;"."&#33477;&#33504;"/"&#33477;&#33504;&#35261;&#33477;&#33504;&#36455;&#38768;&#35266;</SourceLine>   <SourceLine>//&#33461;&#33449;&#33461;&#33089;&#37094;&#37802;&#37966;&#37012;&#33485;2&#35973;&#33484;&#33457;&#33478;</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = LeftB(tDateString,4) + ZeroSup(Val(Y_NthField(tDateString,"/",2)),2) + ZeroSup(Val(Y_NthField(tDateString,"/",3)),2)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IncMonth</ItemName>  <ItemParams>tDate as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>14</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>14</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function IncMonth(tDate as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;YY/MM/DD&#33520;&#36595;&#33455;&#33476;&#35050;&#35982;&#36969;&#33503;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/07/27(Mon)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/08/10(Mon)</SourceLine>   <SourceLine>//&#33088;&#33088;&#33088;&#33088;&#33088;1998/09/14(Mon)&#33088;4&#35973;&#37052;&#38895;&#33480;&#33511;4&#35973;&#33477;&#33089;2&#35973;&#37052;&#38895;&#33480;&#33511;2&#35973;&#33477;&#38356;&#33463;&#33510;&#33444;&#33481;&#38351;&#36184;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tYear as Integer</SourceLine>   <SourceLine>Dim tMonth as Integer</SourceLine>   <SourceLine>Dim tDay as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tYear = Val(Y_NthField(tDate,"/",1))</SourceLine>   <SourceLine>tMonth = Val(Y_NthField(tDate,"/",2))</SourceLine>   <SourceLine>tDay = Val(Y_NthField(tDate,"/",3))</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>If tMonth = 12 Then</SourceLine>   <SourceLine>tYear = tYear + 1</SourceLine>   <SourceLine>tMonth = 1</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tMonth = tMonth + 1</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If tMonth = 2 Then</SourceLine>   <SourceLine>If (Val(GetMiddleDate(Str(tYear))) Mod 4) = 0 Then</SourceLine>   <SourceLine>If tDay &gt;= 30 Then</SourceLine>   <SourceLine>tDay = 29</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>If tDay &gt;= 29 Then</SourceLine>   <SourceLine>tDay = 28</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>ElseIf tMonth = 4 Or  tMonth = 6 Or  tMonth = 9 Or  tMonth = 11 Then</SourceLine>   <SourceLine>If tDay &gt;= 31 Then</SourceLine>   <SourceLine>tDay = 30</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return Str(tYear) + "/" + ZeroSup(tMonth,2) + "/" + ZeroSup(tDay,2)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecMonth</ItemName>  <ItemParams>tDate as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>14</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>14</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function DecMonth(tDate as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;YY/MM/DD&#33520;&#36595;&#33455;&#33476;&#35050;&#35982;&#38623;&#33463;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/07/27(Mon)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/08/10(Mon)</SourceLine>   <SourceLine>//&#33088;&#33088;&#33088;&#33088;&#33088;1998/09/14(Mon)&#33088;4&#35973;&#37052;&#38895;&#33480;&#33511;4&#35973;&#33477;&#33089;2&#35973;&#37052;&#38895;&#33480;&#33511;2&#35973;&#33477;&#38356;&#33463;&#33510;&#33444;&#33481;&#38351;&#36184;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tYear as Integer</SourceLine>   <SourceLine>Dim tMonth as Integer</SourceLine>   <SourceLine>Dim tDay as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tYear = Val(Y_NthField(tDate,"/",1))</SourceLine>   <SourceLine>tMonth = Val(Y_NthField(tDate,"/",2))</SourceLine>   <SourceLine>tDay = Val(Y_NthField(tDate,"/",3))</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>If tMonth= 1 Then</SourceLine>   <SourceLine>tYear = tYear - 1</SourceLine>   <SourceLine>tMonth = 12</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tMonth = tMonth - 1</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If tMonth = 2 Then</SourceLine>   <SourceLine>If (Val(GetMiddleDate(Str(tYear))) Mod 4) = 0 Then</SourceLine>   <SourceLine>If tDay &gt;= 30 Then</SourceLine>   <SourceLine>tDay = 29</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>If tDay &gt;= 29 Then</SourceLine>   <SourceLine>tDay = 28</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>ElseIf tMonth = 4 Or  tMonth = 6 Or  tMonth = 9 Or  tMonth = 11 Then</SourceLine>   <SourceLine>If tDay &gt;= 31 Then</SourceLine>   <SourceLine>tDay = 30</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return Str(tYear) + "/" + ZeroSup(tMonth,2) + "/" + ZeroSup(tDay,2)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>MakeFolder</ItemName>  <ItemParams>tFolderName as String</ItemParams>  <ItemResult>FolderItem</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>11</StartSelRow>   <StartSelCol>18</StartSelCol>   <EndSelRow>11</EndSelRow>   <EndSelCol>18</EndSelCol>   <SourceLine>Function MakeFolder(tFolderName as String) As FolderItem</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#36595;&#33455;&#33469;&#38588;&#37199;&#33484;&#33652;&#33608;&#33675;&#33631;&#33520;&#36332;&#37036;&#33463;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#33652;&#33608;&#33675;&#33631;&#38588;&#33129;&#33648;&#33624;&#33442;&#33512;&#33477;&#33130;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;FolderItem</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/07/17(Fri)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tFolderItem as FolderItem</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tFolderItem = GetFolderItem(tFolderName)</SourceLine>   <SourceLine>tFolderItem.CreateAsFolder</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tFolderItem</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>SpaceSupB</ItemName>  <ItemParams>tNumerical as String,tKeta as Integer</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>6</StartSelRow>   <StartSelCol>13</StartSelCol>   <EndSelRow>6</EndSelRow>   <EndSelCol>13</EndSelCol>   <SourceLine>Function SpaceSupB(tNumerical as String,tKeta as Integer) As String</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = tNumerical + "                                                                                                                                                         "</SourceLine>   <SourceLine>tString = LeftB(tString,tKeta)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DeBugLog</ItemName>  <ItemParams>tPath as String,tWriteString as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>42</StartSelRow>   <StartSelCol>45</StartSelCol>   <EndSelRow>42</EndSelRow>   <EndSelCol>45</EndSelCol>   <SourceLine>Sub DeBugLog(tPath as String,tWriteString as String)</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#33638;&#33647;&#33634;&#33615;&#33677;&#33615;&#33484;&#36719;&#38861;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#36719;&#38861;&#33463;&#33513;&#33652;&#33600;&#33603;&#33675;&#33484;&#33648;&#33624;&#33089;&#36753;&#33451;&#36719;&#33463;&#37856;&#38757;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#33480;&#33461;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1999/08/05(Thu)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1999/08/19(Thu)&#33088;&#36719;&#38861;&#33652;&#33600;&#33603;&#33675;&#33520;&#33637;&#33612;&#33624;&#33639;&#33449;&#33511;&#33647;&#33603;&#33641;&#33674;&#33494;&#38351;&#36184;&#33093;&#36293;&#37349;&#36211;&#37012;&#33484;&#37575;&#35265;</SourceLine>   <SourceLine>//&#33088;&#33088;&#33088;&#33088;&#33094;2000/10/18(Wed)&#33088;&#36332;&#37036;&#33463;&#33513;&#33652;&#33600;&#33603;&#33675;&#33630;&#33603;&#33654;&#33520;text/plain&#33141;text/plain&#33142;&#33481;&#38351;&#36184;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;&#36719;&#38861;&#33477;&#33451;&#33513;&#38326;&#36506;&#37012;&#33485;&#38641;80&#33647;&#33603;&#33639;&#33089;&#36293;&#37349;999&#36211;&#33500;&#33477;</SourceLine>   <SourceLine>Dim tFolderItem as FolderItem</SourceLine>   <SourceLine>Dim tBinaryStream as BinaryStream</SourceLine>   <SourceLine>Dim tLine as Integer</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine>Dim tDate as Date</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tDate = New Date</SourceLine>   <SourceLine>tFolderItem = GetFolderItem(tPath)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If tFolderItem &lt;&gt; Nil Then</SourceLine>   <SourceLine>tBinaryStream = tFolderItem.OpenAsBinaryFile(True)</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If tBinaryStream = Nil Then</SourceLine>   <SourceLine>tBinaryStream = tFolderItem.CreateBinaryFile("text/plain")</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tLine = 0</SourceLine>   <SourceLine>If tBinaryStream &lt;&gt; Nil Then</SourceLine>   <SourceLine>tLine = Val(tBinaryStream.Read(150))</SourceLine>   <SourceLine>If tLine = 99999 Then</SourceLine>   <SourceLine>tLine = 0</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tLine = tLine + 1</SourceLine>   <SourceLine>#If TargetMacOS Then</SourceLine>   <SourceLine>tBinaryStream.Position = 0</SourceLine>   <SourceLine>tBinaryStream.Write SpaceSupB(ZeroSup(tLine,5),150) + CHR(13)</SourceLine>   <SourceLine>tString = ZeroSup(tLine,5) + "  " + tDate.ShortDate + "  " + tDate.LongTime + "  " + tWriteString</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tBinaryStream.Position = tLine * 151</SourceLine>   <SourceLine>tBinaryStream.Write SpaceSupB(tString,150) + CHR(13)</SourceLine>   <SourceLine>#Else</SourceLine>   <SourceLine>tBinaryStream.Position = 0</SourceLine>   <SourceLine>tBinaryStream.Write SpaceSupB(ZeroSup(tLine,5),150) + CHR(13) + CHR(10)</SourceLine>   <SourceLine>tString = ZeroSup(tLine,5) + "  " + tDate.ShortDate + "  " + tDate.LongTime + "  " + tWriteString</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tBinaryStream.Position = tLine * 152</SourceLine>   <SourceLine>tBinaryStream.Write SpaceSupB(tString,150) + CHR(13) + CHR(10)</SourceLine>   <SourceLine>#Endif</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tBinaryStream.Close</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tFolderItem.MacType = "TEXT"</SourceLine>   <SourceLine>tFolderItem.MacCreator = "ttxt"</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecimalPointDouble</ItemName>  <ItemParams>tDouble as Double</ItemParams>  <ItemResult>Double</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>12</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>12</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function DecimalPointDouble(tDouble as Double) As Double</SourceLine>   <SourceLine>Dim tDecimalDouble as Double</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Select Case gDecimal</SourceLine>   <SourceLine>Case 1</SourceLine>   <SourceLine>tDecimalDouble = FloorBug(tDouble)</SourceLine>   <SourceLine>Case 2</SourceLine>   <SourceLine>tDecimalDouble = Ceil(tDouble)</SourceLine>   <SourceLine>Case 3</SourceLine>   <SourceLine>tDecimalDouble =Round(tDouble)</SourceLine>   <SourceLine>End Select</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tDecimalDouble</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>CheakPopupCout</ItemName>  <ItemParams>tPopupName as PopupMenu</ItemParams>  <ItemResult>Boolean</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>18</StartSelRow>   <StartSelCol>15</StartSelCol>   <EndSelRow>18</EndSelRow>   <EndSelCol>15</EndSelCol>   <SourceLine>Function CheakPopupCout(tPopupName as PopupMenu) As Boolean</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#33660;&#33634;&#33654;&#33601;&#33634;&#33654;&#33481;&#38326;&#36506;&#38897;&#33485;&#33440;&#33513;&#33449;&#33096;&#33480;&#33442;&#33449;&#33096;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;PopupMenu</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#33440;&#33513;&#33156;&#33156;True&#33088;&#33088;&#33480;&#33442;&#33156;&#33156;False</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/09/04(Fri)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine>Dim tBoolean as Boolean</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tPopupName.ListIndex = 0</SourceLine>   <SourceLine>tString = tPopupName.Text</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If tString &lt;&gt; "" Then</SourceLine>   <SourceLine>tBoolean = True</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tBoolean = False</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tBoolean</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>OpenPrint</ItemName>  <ItemParams>tGraph as Graphics,tScreenX as Integer,tScreenY as Integer,tHeadFoot as String,tMaxPage as String,tSegmentNumber as String,tSegmentString as String,tSegmentPosition as String,tFontName as String,tFontSize as String</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>66</StartSelRow>   <StartSelCol>7</StartSelCol>   <EndSelRow>66</EndSelRow>   <EndSelCol>15</EndSelCol>   <SourceLine>Sub OpenPrint(tGraph as Graphics,tScreenX as Integer,tScreenY as Integer,tHeadFoot as String,tMaxPage as String,tSegmentNumber as String,tSegmentString as String,tSegmentPosition as String,tFontName as String,tFontSize as String)</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#38236;&#35059;&#36348;&#33481;&#38219;&#38774;&#33480;&#33638;&#33115;&#33630;&#33520;&#35265;&#36168;&#33463;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;Graphics&#33089;tScreenX&#33089;tScreenX&#33089;&#33655;&#33634;&#33630;&#33173;&#33652;&#33634;&#33630;&#35018;&#37493;&#33089;&#35050;&#38341;&#38618;&#33173;&#33467;&#33514;&#35016;&#36222;&#33657;&#33115;&#33623;&#33484;&#36293;&#37349;&#36211;&#37012;</SourceLine>   <SourceLine>//&#33088;&#33088;&#33088;&#33088;&#33088;&#33626;&#33675;&#33484;&#33620;&#33603;&#33625;&#33089;&#38236;&#37352;&#33089;&#38236;&#36518;&#35018;&#37493;&#33089;&#33652;&#33608;&#33683;&#33639;&#33089;&#33652;&#33608;&#33683;&#33639;&#33620;&#33603;&#33625;&#33129;&#38236;&#37352;&#33520;&#36764;&#33451;&#37203;&#33476;&#35814;&#37080;&#33512;&#38326;&#36506;&#33485;&#33143;^&#33129;&#38076;&#35440;&#33130;&#33144;&#33520;&#36455;&#38768;&#33484;&#36502;&#33130;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#33480;&#33461;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/09/06(Sun)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/10/01(Thu)&#33088;&#33652;&#33608;&#33683;&#33639;&#33478;&#33620;&#33603;&#33625;&#33520;&#36471;&#37608;&#33477;&#33451;&#33513;&#38764;&#33481;&#38351;&#36184;</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/11/19(Thu)&#33088;&#38236;&#33484;&#35141;&#37467;&#36288;&#38231;&#33520;lPrintData(8)&#33481;&#37575;&#35265;</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1999/05/17(Mon)&#33088;&#33652;&#33608;&#33683;&#33639;&#33620;&#33603;&#33625;&#33484;&#38135;&#37554;&#37038;&#33129;&#37309;&#38314;OS8.6&#33484;&#37856;&#38292;&#38351;&#36184;&#33484;&#35031;&#33130;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;OpenPritn&#33478;ListPrint&#33484;3&#33626;&#33634;&#33639;&#33477;&#36455;&#38768;&#33463;&#33513;</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine>Dim tTextHeight as Integer</SourceLine>   <SourceLine>Dim tTextWidth as Integer</SourceLine>   <SourceLine>Dim tCellSegment as String</SourceLine>   <SourceLine>Dim tCellLength as Integer</SourceLine>   <SourceLine>Dim tCellHeight as Integer</SourceLine>   <SourceLine>Dim tCellWidth as Integer</SourceLine>   <SourceLine>Dim tListLeft as Integer</SourceLine>   <SourceLine>Dim tListTop as Integer</SourceLine>   <SourceLine>Dim tPrintString(50) as String</SourceLine>   <SourceLine>Dim tCenterPrintInteger as Integer</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine>Dim j as Integer</SourceLine>   <SourceLine>dim tstring as string</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>gScreenX = tScreenX</SourceLine>   <SourceLine>gScreenY = tScreenY</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35050;&#38341;&#38618;&#33484;&#33655;&#33634;&#33631;&#36226;</SourceLine>   <SourceLine>lHeadFootLine(0) = Val(Y_NthField(tHeadFoot,";",1))</SourceLine>   <SourceLine>//&#35050;&#38341;&#38618;&#33484;&#33652;&#33634;&#33630;&#36226;</SourceLine>   <SourceLine>lHeadFootLine(1) = Val(Y_NthField(tHeadFoot,";",2))</SourceLine>   <SourceLine>//&#35016;&#36222;&#38341;&#33484;&#33655;&#33634;&#33630;&#36226;</SourceLine>   <SourceLine>lHeadFootLine(2) = Val(Y_NthField(tHeadFoot,";",3))</SourceLine>   <SourceLine>//&#35016;&#36222;&#38341;&#33484;&#33652;&#33634;&#33630;&#36226;</SourceLine>   <SourceLine>lHeadFootLine(3) = Val(Y_NthField(tHeadFoot,";",4))</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35050;&#38341;&#33503;&#33484;&#36293;&#37349;&#36211;&#37012;</SourceLine>   <SourceLine>lMaxPage(0) = Val(Y_NthField(tMaxPage,";",1))</SourceLine>   <SourceLine>//&#35016;&#36222;&#38341;&#33484;&#36293;&#37349;&#36211;&#37012;</SourceLine>   <SourceLine>lMaxPage(1) = Val(Y_NthField(tMaxPage,";",2))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33657;&#33115;&#33623;&#38100;&#36230;</SourceLine>   <SourceLine>lPageLineNumber(0) = 1</SourceLine>   <SourceLine>//&#33467;&#33484;&#33657;&#33115;&#33623;&#37856;&#33477;&#35059;&#36348;&#33461;&#33469;&#36211;&#37012;</SourceLine>   <SourceLine>lPageLineNumber(1) = 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35429;&#33626;&#33675;&#33484;&#33620;&#33603;&#33625;&#33478;&#33089;&#33501;&#33470;&#33461;</SourceLine>   <SourceLine>i = 0</SourceLine>   <SourceLine>While Y_NthField(tSegmentNumber,";",i + 1) &lt;&gt; ""</SourceLine>   <SourceLine>lSegmentSizeBuffer(i) = Val(Y_NthField(tSegmentNumber,";",i + 1))</SourceLine>   <SourceLine>lSegmentString(i) = Y_NthField(tSegmentString,Chr(9),i + 1)</SourceLine>   <SourceLine>lSegmentPosition(i) = Y_NthField(tSegmentPosition,";",i + 1)</SourceLine>   <SourceLine>i = i + 1</SourceLine>   <SourceLine>Wend</SourceLine>   <SourceLine></SourceLine>   <SourceLine>lSegmentNumber = i</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>lPrintFont(0) = tFontName</SourceLine>   <SourceLine>lPrintFont(1) = tFontSize</SourceLine>   <SourceLine>tGraph.TextFont = lPrintFont(0)</SourceLine>   <SourceLine>tGraph.TextSize = Val(lPrintFont(1))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#38301;&#33484;&#37012;&#37484;&#33485;&#37203;&#33476;&#33651;&#33614;&#33626;&#33675;</SourceLine>   <SourceLine>//&#35059;&#36348;&#35266;&#37980;&#35233;&#38301;</SourceLine>   <SourceLine>lPrintData(0) = tGraph.Width</SourceLine>   <SourceLine>//&#35059;&#36348;&#35266;&#37980;&#36707;&#38301;</SourceLine>   <SourceLine>lPrintData(1) = tGraph.Height</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#36027;&#36317;&#33484;&#33652;&#33608;&#33683;&#33639;&#33477;&#33484;&#35050;&#38326;&#36506;&#33129;&#38076;&#35440;&#33130;&#33484;&#35233;&#38301;</SourceLine>   <SourceLine>lPrintData(2) =  tGraph.StringWidth("&#33185;") / 2 + 1</SourceLine>   <SourceLine>//&#36027;&#36317;&#33484;&#33652;&#33608;&#33683;&#33639;&#33477;&#33484;&#35050;&#38326;&#36506;&#33129;&#38076;&#35440;&#33130;&#33484;&#36707;&#38301;</SourceLine>   <SourceLine>lPrintData(3) =  tGraph.StringWidth("&#33185;")</SourceLine>   <SourceLine>//&#36027;&#36317;&#33484;&#33652;&#33608;&#33683;&#33639;&#33477;&#33484;&#35050;&#36211;&#35059;&#36348;&#33484;&#36707;&#38301;</SourceLine>   <SourceLine>lPrintData(4) = tGraph.TextHeight</SourceLine>   <SourceLine></SourceLine>   <SourceLine>lCellSegment = ""</SourceLine>   <SourceLine>tCellWidth = 0</SourceLine>   <SourceLine>For i = 0 to 49</SourceLine>   <SourceLine>If lSegmentSizeBuffer(i) &gt; 0 Then</SourceLine>   <SourceLine>//&#38236;&#36332;&#37036;&#36510;&#33484;&#35814;&#37080;&#33512;&#33520;&#36332;&#33513;</SourceLine>   <SourceLine>lCellSegment = lCellSegment + Str((lSegmentSizeBuffer(i) + 2) * lPrintData(2)) + ";"</SourceLine>   <SourceLine>//&#38236;&#33484;&#36707;&#33520;&#37822;&#33513;</SourceLine>   <SourceLine>tCellWidth = tCellWidth + (lSegmentSizeBuffer(i) + 2) * lPrintData(2)</SourceLine>   <SourceLine>//&#36292;&#33489;&#35429;&#33626;&#33675;&#33484;&#33620;&#33603;&#33625;&#33520;&#37822;&#33513;</SourceLine>   <SourceLine>lSegmentSize(i + 1) = tCellWidth</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>//&#38236;&#36332;&#37036;&#36510;&#33484;&#35814;&#37080;&#33512;&#33484;&#36293;&#36067;&#33484;&#35050;&#38326;&#36506;&#33129;&#36293;&#36067;&#33481;&#33128;&#33095;&#33128;&#33450;&#38260;&#33442;&#33476;&#33461;&#33500;&#33444;&#33469;&#33503;&#33481;&#33130;&#33520;&#33485;&#33464;&#33463;</SourceLine>   <SourceLine>lCellSegment = LeftB(lCellSegment,LenB(lCellSegment) - 1)</SourceLine>   <SourceLine>Exit</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine>//&#38236;&#33484;&#36707;&#38301;&#33520;&#37822;&#33513;</SourceLine>   <SourceLine>lPrintData(5) = lPrintData(4) * lMaxPage(0)</SourceLine>   <SourceLine>//&#35429;&#37085;&#37608;&#36835;&#33449;&#33511;&#35958;&#36442;&#33461;&#33469;&#38236;&#33484;&#36278;&#37467;&#36288;&#38231;</SourceLine>   <SourceLine>lPrintData(6) = (lPrintData(0) - tCellWidth) / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33626;&#33675;&#33620;&#33603;&#33625;&#33481;&#38236;&#33484;&#36278;&#37467;&#33484;&#36288;&#38231;&#33520;&#37291;&#33461;&#36254;&#33502;</SourceLine>   <SourceLine>lSegmentSize(0) = tListLeft</SourceLine>   <SourceLine>For j = 1  to 49</SourceLine>   <SourceLine>lSegmentSize(j) = lSegmentSize(j) + tListLeft</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine>//&#35429;&#37085;&#37608;&#36835;&#33449;&#33511;&#35958;&#36442;&#33461;&#33469;&#38236;&#33484;&#36835;&#38292;&#36288;&#38231;</SourceLine>   <SourceLine>lPrintData(7) = lHeadFootLine(0) + 20</SourceLine>   <SourceLine>//&#35429;&#33453;&#37085;&#37608;&#36835;&#33449;&#33511;&#35958;&#36442;&#33461;&#33469;&#38236;&#33484;&#35141;&#37467;&#36288;&#38231;</SourceLine>   <SourceLine>lPrintData(8) = lPrintData(0) -  (lPrintData(0) - lSegmentSize(lSegmentNumber)) / 2</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>AddPrint</ItemName>  <ItemParams>tGraph as Graphics,tString as String</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>53</StartSelRow>   <StartSelCol>19</StartSelCol>   <EndSelRow>53</EndSelRow>   <EndSelCol>19</EndSelCol>   <SourceLine>Function AddPrint(tGraph as Graphics,tString as String) As Integer</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#35050;&#36211;&#35059;&#36348;&#33463;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;Graphics,&#35059;&#36348;&#38326;&#36506;&#38897;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#35059;&#36348;&#33461;&#33469;&#36211;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/09/06(Sun)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/10/01(Thu)&#33088;&#33652;&#33608;&#33683;&#33639;&#33478;&#33620;&#33603;&#33625;&#33520;&#36471;&#37608;&#33477;&#33451;&#33513;&#38764;&#33481;&#38351;&#36184;</SourceLine>   <SourceLine>//&#33088;&#33088;&#33088;&#33088;&#33094;1998/10/06(Tue)&#33088;&#35059;&#36348;&#35018;&#37493;&#33484;&#38259;&#35823;&#36231;&#33520;&#35312;&#36801;</SourceLine>   <SourceLine>//&#33088;&#33088;&#33088;&#33088;&#33094;1998/10/28(Wed)  &#37510;&#36947;&#35059;&#36348;&#33484;&#38259;&#35823;&#36231;&#36675;&#37043;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;OpenPritn&#33478;ListPrint&#33484;3&#33626;&#33634;&#33639;&#33477;&#36455;&#38768;&#33463;&#33513;</SourceLine>   <SourceLine>Dim tPrintString(50) as String</SourceLine>   <SourceLine>Dim tPrintInteger as Integer</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.TextFont = lPrintFont(0)</SourceLine>   <SourceLine>tGraph.TextSize = Val(lPrintFont(1))-1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35059;&#36348;&#33657;&#33115;&#33623;&#33450;&#33360;&#38341;&#38618;&#33449;&#33467;&#33514;&#35016;&#35407;&#33449;&#33477;&#35059;&#36348;&#36211;&#37012;&#33520;&#38351;&#36184;</SourceLine>   <SourceLine>If lPageLineNumber(0) = 1 Then</SourceLine>   <SourceLine>tPrintInteger = 0</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tPrintInteger = 1</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33657;&#33115;&#33623;&#33484;&#36293;&#37349;&#36211;&#37012;&#33481;&#33480;&#33473;&#33469;&#33511;&#38236;&#33520;&#36753;&#33451;&#33657;&#33115;&#33623;&#33520;&#37271;&#33513;</SourceLine>   <SourceLine>If lMaxPage(tPrintInteger) = lPageLineNumber(1) Then</SourceLine>   <SourceLine>//&#38236;&#33484;&#38240;&#35302;</SourceLine>   <SourceLine>ListPrint tGraph,lPageLineNumber(1)</SourceLine>   <SourceLine>//&#33657;&#33115;&#33623;&#33520;&#37271;&#33513;</SourceLine>   <SourceLine>tGraph.NextPage</SourceLine>   <SourceLine>//&#33657;&#33115;&#33623;&#33610;&#33605;&#33683;&#33630;&#33520;&#35050;&#33474;&#37277;&#33506;&#33461;&#33089;&#35059;&#36348;&#36211;&#33610;&#33605;&#33683;&#33630;&#33520;&#33674;&#33626;&#33634;&#33639;</SourceLine>   <SourceLine>lPageLineNumber(0) = lPageLineNumber(0) + 1</SourceLine>   <SourceLine>lPageLineNumber(1) = 1</SourceLine>   <SourceLine>//&#38236;&#33484;&#36707;&#38301;&#33520;&#37822;&#33513;</SourceLine>   <SourceLine>lPrintData(5) = lPrintData(4) * lMaxPage(1)</SourceLine>   <SourceLine>//&#35429;&#37085;&#37608;&#36835;&#33449;&#33511;&#35958;&#36442;&#33461;&#33469;&#38236;&#33484;&#36835;&#38292;&#36288;&#38231;</SourceLine>   <SourceLine>lPrintData(7) = lHeadFootLine(2) + 20</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine> </SourceLine>   <SourceLine>For i = 0 to 49</SourceLine>   <SourceLine>//&#35059;&#36348;&#37856;&#38757;&#33520;&#38010;&#38897;&#33494;&#35433;&#37979;</SourceLine>   <SourceLine>tPrintString(i) = Y_NthField(tString,Chr(9),i + 1)</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33657;&#33115;&#33623;&#33484;&#33610;&#33605;&#33683;&#33630;&#33520;&#35050;&#33474;&#37277;&#33506;&#33463;</SourceLine>   <SourceLine>lPageLineNumber(1) = lPageLineNumber(1) + 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35064;&#33451;&#36595;&#33455;&#33469;&#38326;&#36506;&#38897;&#33520;&#35059;&#36348;</SourceLine>   <SourceLine>tGraph.TextFont = "&#33649;&#33673;&#33613;&#33645;&#38590;&#37545; Pro W3"</SourceLine>   <SourceLine>tGraph.TextSize = 10</SourceLine>   <SourceLine>tGraph.bold = false</SourceLine>   <SourceLine>For i = 0 to 50</SourceLine>   <SourceLine>Select Case lSegmentPosition(i)</SourceLine>   <SourceLine>Case "L"</SourceLine>   <SourceLine>OutPrintP tGraph , lPrintData(6) + lSegmentSize(i) + 4 , lPrintData(7) + (lPrintData(4) * lPageLineNumber(1)) - 2,tPrintString(i),"L"</SourceLine>   <SourceLine>Case "M"</SourceLine>   <SourceLine>OutPrintP tGraph , lPrintData(6) + lSegmentSize(i) + 3 , lPrintData(7) + (lPrintData(4) * lPageLineNumber(1)) - 2,tPrintString(i),"M"</SourceLine>   <SourceLine>Case "R"</SourceLine>   <SourceLine>OutPrintP tGraph , lPrintData(6) + lSegmentSize(i) , lPrintData(7) + (lPrintData(4) * lPageLineNumber(1)) - 2,tPrintString(i),"R"</SourceLine>   <SourceLine>Case ""</SourceLine>   <SourceLine>Exit</SourceLine>   <SourceLine>End Select</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#36257;&#35313;&#36753;&#33442;&#33469;&#38341;&#33520;&#38356;&#33463;</SourceLine>   <SourceLine>Return lPageLineNumber(0)</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ListPrint</ItemName>  <ItemParams>tGraph as Graphics,tLastPrint as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>11</StartSelRow>   <StartSelCol>7</StartSelCol>   <EndSelRow>11</EndSelRow>   <EndSelCol>15</EndSelCol>   <SourceLine>Sub ListPrint(tGraph as Graphics,tLastPrint as Integer)</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#38236;&#33478;&#38236;&#37352;&#33520;&#36332;&#37036;&#33463;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;Graphics,&#35059;&#36348;&#33461;&#33469;&#36211;&#37012;&#33129;&#38236;&#33484;&#38093;&#35021;&#33481;&#36455;&#38768;&#33130;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#33480;&#33461;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/09/06(Sun)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1998/10/01(Thu)&#33088;&#36288;&#38231;&#35018;&#37493;&#33520;-1&#33461;&#33469;</SourceLine>   <SourceLine>//&#33088;&#33088;&#33088;&#33088;&#33094;1998/10/06(Tue)&#33088;&#35059;&#36348;&#35018;&#37493;&#33484;&#38259;&#35823;&#36231;&#33520;&#35312;&#36801;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;OpenPritn&#33478;ListPrint&#33484;3&#33626;&#33634;&#33639;&#33477;&#36455;&#38768;&#33463;&#33513;</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGraph.TextFont = lPrintFont(0)</SourceLine>   <SourceLine>tGraph.TextSize = Val(lPrintFont(1))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#38236;&#33520;&#36332;&#33513;</SourceLine>   <SourceLine>gsPrintV tGraph , lPrintData(6) , lPrintData(7) , lPrintData(0) - lPrintData(6) - 1, lPrintData(7) + lPrintData(4) , lCellSegment</SourceLine>   <SourceLine>gsPrintV tGraph , lPrintData(6) , lPrintData(7) + lPrintData(4) , lPrintData(0) - lPrintData(6) - 1 ,lPrintData(7) + tLastPrint * lPrintData(4) , lCellSegment</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#38236;&#37352;&#33520;&#36332;&#33513;</SourceLine>   <SourceLine>For i = 0 to 50</SourceLine>   <SourceLine>If lSegmentString(i) &lt;&gt; "" Then</SourceLine>   <SourceLine>CenterPrintP tGraph , lSegmentString(i) , lPrintData(6) + lSegmentSize(i) , lPrintData(6) + lSegmentSize(i + 1) + 4, lPrintData(7) , lPrintData(7) + lPrintData(4) - 2</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>Exit</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35059;&#36348;&#36211;&#37012;&#33610;&#33605;&#33683;&#33630;&#33520;&#35050;&#33474;&#37277;&#33506;&#33463;</SourceLine>   <SourceLine>lPageLineNumber(1) = lPageLineNumber(1) + 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>SpaceMid</ItemName>  <ItemParams>tString as String,tMozi as Integer</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>10</StartSelRow>   <StartSelCol>19</StartSelCol>   <EndSelRow>10</EndSelRow>   <EndSelCol>19</EndSelCol>   <SourceLine>Function SpaceMid(tString as String,tMozi as Integer) As String</SourceLine>   <SourceLine>Dim tSpace as Integer</SourceLine>   <SourceLine>Dim tSpaceString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>tSpace = Floor((tMozi -Len(tString)) / 2)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tSpaceString = SpaceSupB(tString,tSpace + Len(tString))</SourceLine>   <SourceLine>tSpaceString = SpaceSup(tSpaceString,tMozi)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tSPaceString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ClearPrintSet</ItemName>  <ItemParams></ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>37</StartSelRow>   <StartSelCol>6</StartSelCol>   <EndSelRow>37</EndSelRow>   <EndSelCol>10</EndSelCol>   <SourceLine>Sub ClearPrintSet()</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#35059;&#36348;&#33675;&#33115;&#33632;&#33683;&#33477;&#36455;&#38768;&#33461;&#33469;&#38351;&#37012;&#33520;&#33614;&#33674;&#33601;&#33463;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#33480;&#33461;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#33480;&#33461;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/11/19(Thu)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;OpenPritn&#33478;ListPrint&#33478;AddPrint&#33484;4&#33626;&#33634;&#33639;&#33477;&#36455;&#38768;&#33463;&#33513;</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>gScreenX = 0</SourceLine>   <SourceLine>gScreenY = 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>For i = 0 to 3</SourceLine>   <SourceLine>lHeadFootLine(i) = 0</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>lMaxPage(0) = 0</SourceLine>   <SourceLine>lMaxPage(1) = 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>lPageLineNumber(0) = 0</SourceLine>   <SourceLine>lPageLineNumber(1) = 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>For i = 1 to 50</SourceLine>   <SourceLine>lSegmentSize(i) = 0</SourceLine>   <SourceLine>lSegmentString(i) = ""</SourceLine>   <SourceLine>lSegmentPosition(i) = ""</SourceLine>   <SourceLine>lSegmentSizeBuffer(i) = 0</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>lSegmentNumber = 0</SourceLine>   <SourceLine></SourceLine>   <SourceLine>lCellSegment = ""</SourceLine>   <SourceLine></SourceLine>   <SourceLine>For i = 0 to 8</SourceLine>   <SourceLine>lPrintData(i) = 0</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>lPrintFont(0) = ""</SourceLine>   <SourceLine>lPrintFont(1) = ""</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetDayOfWeek</ItemName>  <ItemParams>tYear as Integer,tMonth as Integer,tDay as Integer</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>25</StartSelRow>   <StartSelCol>70</StartSelCol>   <EndSelRow>25</EndSelRow>   <EndSelCol>70</EndSelCol>   <SourceLine>Function GetDayOfWeek(tYear as Integer,tMonth as Integer,tDay as Integer) As Integer</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#36471;&#37608;&#33459;&#33514;&#33469;&#37882;&#38260;&#33450;&#35261;&#38762;&#37882;&#33449;&#35713;&#33503;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#37966;&#33089;&#35982;&#33089;&#37882;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;1&#33094;&#35982;&#38762;&#37882;&#33088;2&#33094;&#35278;&#38762;&#37882;&#33088;3&#33094;&#36997;&#38762;&#37882;&#33088;4&#33094;&#38616;&#38762;&#37882;&#33088;5&#33094;&#35808;&#38762;&#37882;&#33088;6&#33094;&#37753;&#38762;&#37882;&#33088;0&#33094;&#37882;&#38762;&#37882;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/12/21(Mon)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim i as Integer</SourceLine>   <SourceLine>Dim tBufferDay as Integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tBufferDay = tDay</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//1920/1/1 Thursday</SourceLine>   <SourceLine>tBufferDay = 4 + 365 * (tYear - 1920)  + tBufferDay - 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>For i = 1920 to tYear - 1</SourceLine>   <SourceLine>If (i Mod 4 = 0) And ((i Mod 100 &lt;&gt; 0) Or (i Mod 400 = 0)) Then</SourceLine>   <SourceLine>tBufferDay = tBufferDay + 1</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>For i = 1 to tMonth - 1</SourceLine>   <SourceLine>tBufferDay = tBufferDay + GetDaysOfMonth(tYear,i)</SourceLine>   <SourceLine>Next </SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tBufferDay Mod 7</SourceLine>   <SourceLine>// 1&#33094;&#35982;&#38762;&#37882;&#33088;2&#33094;&#35278;&#38762;&#37882;&#33088;3&#33094;&#36997;&#38762;&#37882;&#33088;4&#33094;&#38616;&#38762;&#37882;&#33088;5&#33094;&#35808;&#38762;&#37882;&#33088;6&#33094;&#37753;&#38762;&#37882;&#33088;0&#33094;&#37882;&#38762;&#37882;</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>GetDaysOfMonth</ItemName>  <ItemParams>tYear as Integer,tMonth as Integer</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>9</StartSelRow>   <StartSelCol>22</StartSelCol>   <EndSelRow>9</EndSelRow>   <EndSelCol>22</EndSelCol>   <SourceLine>Function GetDaysOfMonth(tYear as Integer,tMonth as Integer) As Integer</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#36471;&#37608;&#33459;&#33514;&#33469;&#35982;&#33450;&#35261;&#37882;&#33440;&#33513;&#33449;&#35713;&#33503;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#37966;&#33089;&#35982;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#33467;&#33484;&#35982;&#33484;&#37882;&#37012;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/12/21(Mon)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tDays as Integer</SourceLine>   <SourceLine>dim tinteger as integer</SourceLine>   <SourceLine>//&#33467;&#33484;&#35982;&#33484;&#37882;&#37012;&#33520;&#38356;&#33463;</SourceLine>   <SourceLine>tDays = Val(Y_NthField("31,28,31,30,31,30,31,31,30,31,30,31", ",",tMonth))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tinteger = tyear</SourceLine>   <SourceLine>tinteger = tmonth</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35163;&#37966;&#33480;&#33511;&#33361;&#35982;&#33481;&#33360;&#35265;&#36442;</SourceLine>   <SourceLine>If (tMonth = 2) And IsLeapYear(tYear) Then</SourceLine>   <SourceLine>tDays = tDays + 1</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tDays</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IsLeapYear</ItemName>  <ItemParams>tYear as Integer</ItemParams>  <ItemResult>Boolean</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>9</StartSelRow>   <StartSelCol>19</StartSelCol>   <EndSelRow>9</EndSelRow>   <EndSelCol>19</EndSelCol>   <SourceLine>Function IsLeapYear(tYear as Integer) As Boolean</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#36471;&#37608;&#33459;&#33514;&#33469;&#37966;&#33450;&#35163;&#37966;&#33449;&#35713;&#33503;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#37966;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#35163;&#37966;&#33480;&#33511;True</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/12/21(Mon)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#33610;&#33676;&#33683;&#33639;&#37966;&#33450;&#35163;&#37966;&#33480;&#33511;True</SourceLine>   <SourceLine>Return (tYear Mod 4 = 0) And ((tYear Mod 100 &lt;&gt; 0) Or (tYear Mod 400 = 0))</SourceLine>   <SourceLine>//1920/1/1 Thursday</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>ReturnDate</ItemName>  <ItemParams>tStartDate as String,tEndDate as String</ItemParams>  <ItemResult>Integer</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>19</StartSelRow>   <StartSelCol>64</StartSelCol>   <EndSelRow>19</EndSelRow>   <EndSelCol>64</EndSelCol>   <SourceLine>Function ReturnDate(tStartDate as String,tEndDate as String) As Integer</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;&#35402;&#36462;&#37882;&#33449;&#33511;&#36681;&#38841;&#37882;&#33500;&#33477;&#35261;&#37882;&#33440;&#33513;&#33449;&#35713;&#33503;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;&#35402;&#36462;&#37882;&#33089;&#36681;&#38841;&#37882;</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;&#33467;&#33484;&#35540;&#33484;&#37882;&#37012;</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/12/21(Mon)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tStartDay as Integer</SourceLine>   <SourceLine>Dim tEndDay as Integer</SourceLine>   <SourceLine>Dim tTemp as Integer</SourceLine>   <SourceLine>Dim i as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35402;&#36462;&#37882;&#33478;&#36681;&#38841;&#37882;&#33520;&#37822;&#33513;</SourceLine>   <SourceLine>tStartDay = Val(Y_NthField(tStartDate,"/",3))</SourceLine>   <SourceLine>tEndDay = Val(Y_NthField(tEndDate,"/",3))</SourceLine>   <SourceLine>//&#36681;&#38841;&#37882;&#33088;-&#33088;&#35402;&#36462;&#37882;&#33088;+&#33088;1</SourceLine>   <SourceLine>tTemp = tEndDay - tStartDay + 1</SourceLine>   <SourceLine></SourceLine>   <SourceLine>//&#35982;&#33484;&#38314;&#33470;&#33455;&#33675;&#33115;&#33654;&#33461;&#33480;&#33450;&#33511;&#37882;&#37012;&#33520;&#35265;&#33446;&#33476;&#33442;&#33453;</SourceLine>   <SourceLine>tStartDay = Val(Y_NthField(tStartDate,"/",1)) * 100 + Val(Y_NthField(tStartDate,"/",2))</SourceLine>   <SourceLine>tEndDay = Val(Y_NthField(tEndDate,"/",1)) * 100 + Val(Y_NthField(tEndDate,"/",2))</SourceLine>   <SourceLine>For i = tStartDay to tEndDay - 1</SourceLine>   <SourceLine>tTemp = tTemp + GetDaysOfMonth(Val(LeftB(Str(i),4)),Val(RightB(Str(i),2)))</SourceLine>   <SourceLine>//&#35982;&#33450;&#33143;12&#33144;&#33481;&#33480;&#33473;&#33469;&#33511;&#33143;88&#33144;&#33520;&#37291;&#33461;&#33476;&#37966;&#33520;&#36969;&#33503;&#33513;</SourceLine>   <SourceLine>If RightB(Str(i),2) = "12" Then</SourceLine>   <SourceLine>i = i + 88</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>Next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tTemp</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>IncDay</ItemName>  <ItemParams>tDate as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>13</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>13</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function IncDay(tDate as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;YY/MM/DD&#33520;&#36595;&#33455;&#33476;&#35050;&#37882;&#36969;&#33503;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/12/22(Tue)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tYear as Integer</SourceLine>   <SourceLine>Dim tMonth as Integer</SourceLine>   <SourceLine>Dim tDay as Integer</SourceLine>   <SourceLine>Dim tReturnString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tYear = Val(Y_NthField(tDate,"/",1))</SourceLine>   <SourceLine>tMonth = Val(Y_NthField(tDate,"/",2))</SourceLine>   <SourceLine>tDay = Val(Y_NthField(tDate,"/",3))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tDay = tDay + 1</SourceLine>   <SourceLine>If tDay &gt; GetDaysOfMonth(tYear,tMonth) Then</SourceLine>   <SourceLine>tDay = 1</SourceLine>   <SourceLine>tReturnString = IncMonth(Str(tYear) + "/" + ZeroSup(tMonth,2) + "/" + Str(tDay))</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tReturnString = Str(tYear) + "/" + ZeroSup(tMonth,2) + "/" + Str(tDay)</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tReturnString</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>DecDay</ItemName>  <ItemParams>tDate as String</ItemParams>  <ItemResult>String</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>14</StartSelRow>   <StartSelCol>21</StartSelCol>   <EndSelRow>14</EndSelRow>   <EndSelCol>21</EndSelCol>   <SourceLine>Function DecDay(tDate as String) As String</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;YY/MM/DD&#33520;&#36595;&#33455;&#33476;&#35050;&#37882;&#38623;&#33463;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;YY/MM/DD</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1998/12/22(Tue)</SourceLine>   <SourceLine>//&#36675;&#37043;&#37882;&#33088;&#33094;1999/01/06(Wed)&#33088;&#33360;&#37882;&#33484;&#37199;&#37882;&#33129;=&#37199;&#35982;&#33484;&#38550;&#37882;&#33130;&#33484;&#35958;&#36442;&#33450;&#35540;&#35041;&#33473;&#33476;&#33442;&#33513;&#33484;&#33520;&#36675;&#37043;</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;</SourceLine>   <SourceLine>Dim tYear as Integer</SourceLine>   <SourceLine>Dim tMonth as Integer</SourceLine>   <SourceLine>Dim tDay as Integer</SourceLine>   <SourceLine>Dim tReturnString as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tYear = Val(Y_NthField(tDate,"/",1))</SourceLine>   <SourceLine>tMonth = Val(Y_NthField(tDate,"/",2))</SourceLine>   <SourceLine>tDay = Val(Y_NthField(tDate,"/",3))</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tDay = tDay - 1</SourceLine>   <SourceLine>If tDay = 0 Then</SourceLine>   <SourceLine>tMonth = tMonth - 1</SourceLine>   <SourceLine>If tMonth = 0 Then</SourceLine>   <SourceLine>tYear = tYear - 1</SourceLine>   <SourceLine>tMonth = 12</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>tDay = GetDaysOfMonth(tYear,tMonth)</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine>tReturnString = Str(tYear) + "/" + ZeroSup(tMonth,2) + "/" + Str(tDay)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tReturnString</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>FloorBug</ItemName>  <ItemParams>tDouble as Double</ItemParams>  <ItemResult>Double</ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>5</StartSelRow>   <StartSelCol>68</StartSelCol>   <EndSelRow>5</EndSelRow>   <EndSelCol>68</EndSelCol>   <SourceLine>Function FloorBug(tDouble as Double) As Double</SourceLine>   <SourceLine>//&#35542;&#37012;&#37088;&#38590;&#33094;Floor&#36455;&#38768;&#36510;&#33484;&#38626;&#37352;&#33520;&#35312;&#35976;&#33463;&#33513;</SourceLine>   <SourceLine>//&#35064;&#33451;&#37012;&#33088;&#33094;Double</SourceLine>   <SourceLine>//&#38356;&#33512;&#37484;&#33088;&#33094;Double</SourceLine>   <SourceLine>//&#36332;&#37036;&#37882;&#33088;&#33094;1999/01/15(Fri)</SourceLine>   <SourceLine>//&#38133;&#36204;&#33088;&#33088;&#33094;Double&#33520;&#36455;&#38768;&#33461;&#33476;&#33504;&#37048;&#37752;&#36835;&#38626;&#37352;&#33450;&#38061;&#37046;&#33463;&#33513;&#33484;&#33477;&#33457;&#33484;&#35542;&#37012;&#33477;&#35313;&#38128;</SourceLine>   <SourceLine>Dim tString as String</SourceLine>   <SourceLine>Dim tReturnDouble as Double</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tString = format(tDouble - Ceil(tDouble - 1) + 0.000000001,"#.000000000000000000000")</SourceLine>   <SourceLine></SourceLine>   <SourceLine>If Val(tString) &gt;= 1 Then</SourceLine>   <SourceLine>tReturnDouble = Ceil(tDouble)</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tReturnDouble = Floor(tDouble)</SourceLine>   <SourceLine>End If</SourceLine>   <SourceLine></SourceLine>   <SourceLine>Return tReturnDouble</SourceLine>   <SourceLine>End Function</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>OutPrintP</ItemName>  <ItemParams>tGraph as Graphics,tX as Integer,tY as Integer,tString as String,posiset as string</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>0</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>0</EndSelCol>   <SourceLine>Sub OutPrintP(tGraph as Graphics,tX as Integer,tY as Integer,tString as String,posiset as string)</SourceLine>   <SourceLine>If Trim(posiset) = "L" Then</SourceLine>   <SourceLine>tGraph.DrawString tString,tX + gScreenX+30,tY + gScreenY</SourceLine>   <SourceLine>ElseIf Trim(posiset) = "M" Then</SourceLine>   <SourceLine>wDrawString(tGraph, tString,tX + gScreenX+30,tY + gScreenY,60)</SourceLine>   <SourceLine>ElseIf Trim(posiset) = "R" Then</SourceLine>   <SourceLine>rDrawString(tGraph,tString,(tX + gScreenX+30)+80,tY + gScreenY)</SourceLine>   <SourceLine>Else</SourceLine>   <SourceLine>tGraph.DrawString tString,tX + gScreenX+30,tY + gScreenY</SourceLine>   <SourceLine>End IF</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>OutPlotP</ItemName>  <ItemParams>tGraph as Graphics,tObjL as Integer,tObjT as Integer,tObjR as Integer,tObjB as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>1</StartSelRow>   <StartSelCol>89</StartSelCol>   <EndSelRow>1</EndSelRow>   <EndSelCol>89</EndSelCol>   <SourceLine>Sub OutPlotP(tGraph as Graphics,tObjL as Integer,tObjT as Integer,tObjR as Integer,tObjB as Integer)</SourceLine>   <SourceLine>tGraph.DrawLine tObjL + gScreenX+30,tObjT + gScreenY,tObjR + gScreenX+30,tObjB + gScreenY</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>CenterPrintP</ItemName>  <ItemParams>tGraph as Graphics,tString as String,tLeft as Integer,tRight as Integer,tTop as Integer,tBtm as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>13</StartSelRow>   <StartSelCol>69</StartSelCol>   <EndSelRow>13</EndSelRow>   <EndSelCol>69</EndSelCol>   <SourceLine>Sub CenterPrintP(tGraph as Graphics,tString as String,tLeft as Integer,tRight as Integer,tTop as Integer,tBtm as Integer)</SourceLine>   <SourceLine>Dim tPrintSizeLR as Integer</SourceLine>   <SourceLine>Dim tPrintSizeTB as Integer</SourceLine>   <SourceLine>Dim tStringSize as Integer</SourceLine>   <SourceLine>Dim tGomi as String</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tStringSize = tGraph.StringWidth(tString)</SourceLine>   <SourceLine>tPrintSizeLR = ((tRight - tLeft) - tStringSize) / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tGomi = LeftB(tString,2)</SourceLine>   <SourceLine>tStringSize = tGraph.StringWidth(tGomi)</SourceLine>   <SourceLine>tPrintSizeTB = ((tBtm - tTop) - tStringSize) / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>OutPrintP tGraph,tLeft + tPrintSizeLR,tBtm - tPrintSizeTB,tString,"L"</SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method></block><block type="Module" ID="-1086011411"> <ObjName>Module1</ObjName> <ObjContainerID>0</ObjContainerID> <EditBounds><Rect left="107" top="232" width="859" height="466"/></EditBounds> <EditSplit>-1000</EditSplit> <IsClass>0</IsClass> <Interfaces></Interfaces> <ObjName>Module1</ObjName> <ObjSize>24</ObjSize> <IsInterface>0</IsInterface> <Method>  <ItemName>lDrawString</ItemName>  <ItemParams>g as Graphics, s as String, x as Integer, y as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>7</StartSelRow>   <StartSelCol>22</StartSelCol>   <EndSelRow>7</EndSelRow>   <EndSelCol>22</EndSelCol>   <SourceLine>Sub lDrawString(g as Graphics, s as String, x as Integer, y as Integer)</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim cnt as integer</SourceLine>   <SourceLine>dim fw as integer</SourceLine>   <SourceLine>dim lens as String</SourceLine>   <SourceLine>dim c as string</SourceLine>   <SourceLine></SourceLine>   <SourceLine>fw = g.stringWidth("00") / 2</SourceLine>   <SourceLine></SourceLine>   <SourceLine>cnt = len(s)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i=1 to cnt</SourceLine>   <SourceLine>c = y_mid(s,i,1)</SourceLine>   <SourceLine>g.DrawString c,x+(lenB(lens)-1)*fw,y</SourceLine>   <SourceLine>lens=lens+c</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>wDrawString</ItemName>  <ItemParams>g as Graphics, s as String, x as Integer, y as Integer, w as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>12</StartSelRow>   <StartSelCol>12</StartSelCol>   <EndSelRow>12</EndSelRow>   <EndSelCol>12</EndSelCol>   <SourceLine>Sub wDrawString(g as Graphics, s as String, x as Integer, y as Integer, w as Integer)</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim cnt as integer</SourceLine>   <SourceLine>dim tW as double</SourceLine>   <SourceLine></SourceLine>   <SourceLine>if len(s) = 1 then</SourceLine>   <SourceLine>g.DrawString s,x+w/2-g.stringWidth(s)/2,y</SourceLine>   <SourceLine>return</SourceLine>   <SourceLine>else</SourceLine>   <SourceLine>tW = w - g.stringWidth(right(s,1))</SourceLine>   <SourceLine>end if</SourceLine>   <SourceLine></SourceLine>   <SourceLine>cnt = len(s)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i=1 to cnt</SourceLine>   <SourceLine>g.DrawString y_mid(s,i,1),x+tW/(cnt-1)*(i-1),y</SourceLine>   <SourceLine></SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method> <Method>  <ItemName>rDrawString</ItemName>  <ItemParams>g as Graphics, s as String, x as Integer, y as Integer</ItemParams>  <ItemResult></ItemResult>  <ItemFlags>0</ItemFlags>  <ItemSource>   <StartSelRow>8</StartSelRow>   <StartSelCol>22</StartSelCol>   <EndSelRow>8</EndSelRow>   <EndSelCol>22</EndSelCol>   <SourceLine>Sub rDrawString(g as Graphics, s as String, x as Integer, y as Integer)</SourceLine>   <SourceLine>dim i as integer</SourceLine>   <SourceLine>dim cnt as integer</SourceLine>   <SourceLine>dim fw as integer</SourceLine>   <SourceLine>dim lens as String</SourceLine>   <SourceLine>dim c as string</SourceLine>   <SourceLine>dim tx as integer</SourceLine>   <SourceLine></SourceLine>   <SourceLine>fw = g.stringWidth("00") / 2</SourceLine>   <SourceLine>cnt = len(s)</SourceLine>   <SourceLine></SourceLine>   <SourceLine>tx = x - lenB(s) * fw</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>for i=1 to cnt</SourceLine>   <SourceLine>c = y_mid(s,i,1)</SourceLine>   <SourceLine>g.DrawString c,tx+(lenB(lens)-1)*fw,y</SourceLine>   <SourceLine>lens=lens+c</SourceLine>   <SourceLine>next</SourceLine>   <SourceLine></SourceLine>   <SourceLine></SourceLine>   <SourceLine>End Sub</SourceLine>  </ItemSource> </Method></block></RBProject>