<?xml version="1.0"?>
<RBProject version="5.5.3">
<block type="Module" ID="-1128532714">
 <ObjName>modCommon</ObjName>
 <ObjContainerID>-1118555947</ObjContainerID>
 <EditBounds><Rect left="0" top="0" width="1147" height="727"/></EditBounds>
 <EditSplit>231</EditSplit>
 <BrowserPositionGroup>
  <BrowserPositionElement>
   <ScreenKey>100000918</ScreenKey>
   <EditBounds><Rect left="0" top="0" width="1147" height="727"/></EditBounds>
   <EditSplit>231</EditSplit>
  </BrowserPositionElement>
  <BrowserPositionElement>
   <ScreenKey>100000721</ScreenKey>
   <EditBounds><Rect left="7" top="25" width="1088" height="658"/></EditBounds>
   <EditSplit>231</EditSplit>
  </BrowserPositionElement>
  <BrowserPositionElement>
   <ScreenKey>209001836</ScreenKey>
   <EditBounds><Rect left="4" top="23" width="1099" height="666"/></EditBounds>
   <EditSplit>234</EditSplit>
  </BrowserPositionElement>
 </BrowserPositionGroup>
 <IsClass>0</IsClass>
 <ObjName>modCommon</ObjName>
 <ObjSize>24</ObjSize>
 <IsInterface>0</IsInterface>
 <Note>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>modCommon_Description</ItemName>
  <ItemFlags>1</ItemFlags>
  <ItemSource>
   <StartSelRow>14</StartSelRow>
   <StartSelCol>22</StartSelCol>
   <EndSelRow>14</EndSelRow>
   <EndSelCol>22</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <NoteLine>modCommon_Description</NoteLine>
   <NoteLine></NoteLine>
   <NoteLine></NoteLine>
   <NoteLine>'=============================================================================================================</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' modCommon Module</NoteLine>
   <NoteLine>' ----------------</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' Created By  : Kevin Wilson</NoteLine>
   <NoteLine>'               http://www.TheVBZone.com   ( The VB Zone )</NoteLine>
   <NoteLine>'               http://net.TheVBZone.com   ( The VB Zone .NET )</NoteLine>
   <NoteLine>'               http://rb.TheVBZone.com    ( The VB Zone [RB] )</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' Created On  : May 3, 2004</NoteLine>
   <NoteLine>' Last Update : Oct 06, 2004</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' RB Versions : 5.5 (or later)</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' Requires    : modVisualBasic.xml  (RB module written by Kevin Wilson [rb.thevbzone.com])</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' Description : This module is a combination of all of the Windows API's that I use most often.  I kept</NoteLine>
   <NoteLine>'               having to add them every time I created a new project, so I figured I'd save myself some</NoteLine>
   <NoteLine>'               time by creating a reusable module that can be used in any program.</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' NOTE        : The functions in this module assume you're targeting Windows.  Some of the functions in this</NoteLine>
   <NoteLine>'               module can only be used in Windows because they call the Win32 API.  If you wish to use some</NoteLine>
   <NoteLine>'               of these functions, you'll have to tweak them a bit for use with other OS's.</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>'=============================================================================================================</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' LEGAL:</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' You are free to use this code as long as you keep the above heading information intact and unchanged. Credit</NoteLine>
   <NoteLine>' given where credit is due.  Also, it is not required, but it would be appreciated if you would mention</NoteLine>
   <NoteLine>' somewhere in your compiled program that that your program makes use of code written and distributed by</NoteLine>
   <NoteLine>' Kevin Wilson (www.TheVBZone.com).  Feel free to link to this code via your web site or articles.</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' You may NOT take this code and pass it off as your own.  You may NOT distribute this code on your own server</NoteLine>
   <NoteLine>' or web site.  You may NOT take code created by Kevin Wilson (www.TheVBZone.com) and use it to create products,</NoteLine>
   <NoteLine>' utilities, or applications that directly compete with products, utilities, and applications created by Kevin</NoteLine>
   <NoteLine>' Wilson, TheVBZone.com, or Wilson Media.  You may NOT take this code and sell it for profit without first</NoteLine>
   <NoteLine>' obtaining the written consent of the author Kevin Wilson.</NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>' These conditions are subject to change at the discretion of the owner Kevin Wilson at any time without</NoteLine>
   <NoteLine><Hex bytes="72">27207761726E696E67206F72206E6F746963652E2020436F70797269676874C2A9206279204B6576696E2057696C736F6E2E2020416C6C207269676874732072657365727665642E</Hex></NoteLine>
   <NoteLine>'</NoteLine>
   <NoteLine>'=============================================================================================================</NoteLine>
   <NoteLine></NoteLine>
   <NoteLine></NoteLine>
  </ItemSource>
 </Note>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>AlwaysOnTop</ItemName>
  <ItemParams>Form As Window, blnOnTop As Boolean</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub AlwaysOnTop(Form As Window, blnOnTop As Boolean)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>#If TargetWin32 = False Then</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>#EndIf</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn As Boolean</SourceLine>
   <SourceLine>blnReturn = AlwaysOnTop(Form, blnOnTop)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>AlwaysOnTop</ItemName>
  <ItemParams>Form As Window, blnOnTop As Boolean</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>44</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>44</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function AlwaysOnTop(Form As Window, blnOnTop As Boolean) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>#If TargetWin32 = False Then</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>#EndIf</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Constants - SetWindowPos.wFlags</SourceLine>
   <SourceLine>Const SWP_FRAMECHANGED = &amp;H20   ' Forces a WM_NCCALCSIZE message to go to the window even if its size does not change.</SourceLine>
   <SourceLine>Const SWP_DRAWFRAME = &amp;H20      ' Draws a frame around the window.</SourceLine>
   <SourceLine>Const SWP_HIDEWINDOW = &amp;H80     ' Hides the window.</SourceLine>
   <SourceLine>Const SWP_NOACTIVATE = &amp;H10     ' Does not activate the window.</SourceLine>
   <SourceLine>Const SWP_NOMOVE = &amp;H2          ' Retains current position (x and y are ignored).</SourceLine>
   <SourceLine>Const SWP_NOREDRAW = &amp;H8        ' Window is not automatically redrawn.</SourceLine>
   <SourceLine>Const SWP_NOSIZE = &amp;H1          ' Retains current size (cx and cy are ignored).</SourceLine>
   <SourceLine>Const SWP_NOZORDER = &amp;H4        ' Retains current position in the window list (hWndInsertAfter is ignored).</SourceLine>
   <SourceLine>Const SWP_SHOWWINDOW = &amp;H40     ' Displays the window.</SourceLine>
   <SourceLine>Const HWND_TOP = 0              ' Place window at the top of the Z-order, the order in which windows are displayed for the given level of the window in the hierarchy</SourceLine>
   <SourceLine>Const HWND_BOTTOM = 1           ' Place window at bottom of the window list</SourceLine>
   <SourceLine>Const HWND_TOPMOST = -1         ' Place window at the top of the list, ahead of any topmost windows</SourceLine>
   <SourceLine>Const HWND_NOTOPMOST = -2       ' Place window at the top of the list, behind any topmost windows</SourceLine>
   <SourceLine>Const SWP_FLAGS = &amp;H3 '(SWP_NOMOVE Or SWP_NOSIZE)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Declare Function SetWindowPos Lib "USER32.DLL" (ByVal hWnd As Integer, ByVal hWndInsertAfter As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intReturn As Integer</SourceLine>
   <SourceLine>Dim intFlag   As Integer</SourceLine>
   <SourceLine>Dim hWnd      As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get the handle to the form</SourceLine>
   <SourceLine>hWnd = Form.WinHWND</SourceLine>
   <SourceLine>If hWnd = 0 Then Return False</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set the flags according to the specified location</SourceLine>
   <SourceLine>intFlag = HWND_TOPMOST</SourceLine>
   <SourceLine>If blnOnTop = False Then intFlag = HWND_NOTOPMOST</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Call the Win32 API to set the position of the form</SourceLine>
   <SourceLine>intReturn = SetWindowPos(hWnd, intFlag, 0, 0, 0, 0, SWP_FLAGS)</SourceLine>
   <SourceLine>If intReturn &lt;&gt; 0 Then</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>CenterForm</ItemName>
  <ItemParams>Form As Window</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>2</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>2</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub CenterForm(Form As Window)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Form.Left = (Screen(0).AvailableWidth - Form.Width) / 2</SourceLine>
   <SourceLine>Form.Top = (Screen(0).AvailableHeight - Form.Height) / 2</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>FileExists</ItemName>
  <ItemParams>FilePath As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>1</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>1</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function FileExists(FilePath As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim oFile As FolderItem</SourceLine>
   <SourceLine>oFile = GetFolderItem(FilePath)</SourceLine>
   <SourceLine>If IsNull(oFile) = False Then</SourceLine>
   <SourceLine>If oFile.Directory = False Then</SourceLine>
   <SourceLine>oFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>oFile = Nil</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>FolderExists</ItemName>
  <ItemParams>FolderPath As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>2</StartSelRow>
   <StartSelCol>15</StartSelCol>
   <EndSelRow>2</EndSelRow>
   <EndSelCol>25</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function FolderExists(FolderPath As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim oFolder As FolderItem</SourceLine>
   <SourceLine>oFolder = GetFolderItem(FolderPath)</SourceLine>
   <SourceLine>If IsNull(oFolder) = False Then</SourceLine>
   <SourceLine>If oFolder.Directory = True Then</SourceLine>
   <SourceLine>oFolder = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>oFolder = Nil</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_AppData</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_AppData() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' RETURN = "C:\Documents and Settings\&lt;USER_NAME&gt;\Application Data\"</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return ApplicationSupportFolder()</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_Desktop</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_Desktop() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' RETURN = "C:\Documents and Settings\&lt;USER_NAME&gt;\Desktop\"</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return DesktopFolder()</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_Fonts</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_Fonts() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' RETURN = "C:\WINNT\Fonts\"</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return FontsFolder()</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_StartUp</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_StartUp() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' RETURN = "C:\Documents and Settings\&lt;USER_NAME&gt;\Start Menu\Programs\Startup\"</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return StartupItemsFolder()</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_System</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_System() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' RETURN = "C:\WINNT\System32\"  *OR*  "C:\Windows\System\"</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return SystemFolder()</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_Temp</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_Temp() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' RETURN = "C:\Temp\"  *OR*  "C:\Windows\Temp"</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return TemporaryFolder()</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_TrashCan</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_TrashCan() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' RETURN = "C:\Documents and Settings\&lt;USER_NAME&gt;\Desktop\Recycle Bin\"</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return TrashFolder()</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>Path_Windows</ItemName>
  <ItemParams></ItemParams>
  <ItemResult>FolderItem</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>3</StartSelRow>
   <StartSelCol>10</StartSelCol>
   <EndSelRow>3</EndSelRow>
   <EndSelCol>10</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function Path_Windows() As FolderItem</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>#If TargetWin32 = False Then</SourceLine>
   <SourceLine>Return Nil</SourceLine>
   <SourceLine>#EndIf</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Declare Function GetWindowsDirectoryA Lib "KERNEL32.DLL" (ByVal lpBuffer As CString, ByVal nSize As Integer) As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim strFolder  As String</SourceLine>
   <SourceLine>Dim intResult  As Integer</SourceLine>
   <SourceLine>Dim intCounter As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>strFolder = ""</SourceLine>
   <SourceLine>For intCounter = 1 To 260</SourceLine>
   <SourceLine>strFolder = strFolder + Chr(0)</SourceLine>
   <SourceLine>Next</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>intResult = GetWindowsDirectoryA(strFolder, 260)</SourceLine>
   <SourceLine>If intResult &lt;&gt; 0 Then</SourceLine>
   <SourceLine>strFolder = Left(strFolder, InStr(1, strFolder, Chr(0)) - 1)</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>strFolder = ""</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return GetFolderItem(strFolder)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>GetFileNameAndExt</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_FileName As String, ByRef Return_FileExtention As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>4</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>4</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function GetFileNameAndExt(ByVal strFilePath As String, ByRef Return_FileName As String, ByRef Return_FileExtention As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' This function returns the NAME and the EXTENTION of the file specified via the "strFilePath" parameter.</SourceLine>
   <SourceLine>' (i.e. - If "C:\Test.txt" is passed in, "Test" is returned as the name, "txt" is returned as the extention)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim StringSoFar As String</SourceLine>
   <SourceLine>Dim CharLeft    As String</SourceLine>
   <SourceLine>Dim CharRight   As String</SourceLine>
   <SourceLine>Dim lngCounter  As Integer</SourceLine>
   <SourceLine>Dim blnFoundExt As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clear return variables</SourceLine>
   <SourceLine>Return_FileName = ""</SourceLine>
   <SourceLine>Return_FileExtention = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Validate parameters</SourceLine>
   <SourceLine>strFilePath = Trim(strFilePath)</SourceLine>
   <SourceLine>If strFilePath = "" Then Return False</SourceLine>
   <SourceLine>strFilePath = ReplaceAll(strFilePath, "/", "\")</SourceLine>
   <SourceLine>If InStr(1, strFilePath, "\") = 0 And InStr(1, strFilePath, ".") = 0 Then</SourceLine>
   <SourceLine>Return_FileName = strFilePath</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Loop through the file and get it's extention and name</SourceLine>
   <SourceLine>For lngCounter = 1 To Len(strFilePath)</SourceLine>
   <SourceLine>CharRight = Right(strFilePath, lngCounter)</SourceLine>
   <SourceLine>CharLeft = Left(CharRight, 1)</SourceLine>
   <SourceLine>If CharLeft = "." And blnFoundExt = False Then</SourceLine>
   <SourceLine>blnFoundExt = True</SourceLine>
   <SourceLine>Return_FileExtention = StringSoFar</SourceLine>
   <SourceLine>StringSoFar = ""</SourceLine>
   <SourceLine>ElseIf CharLeft = "\" Then</SourceLine>
   <SourceLine>Return_FileName = StringSoFar</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>StringSoFar = CharLeft + StringSoFar</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>Next</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' If a single file name was passed without a PATH, this returns the correct values</SourceLine>
   <SourceLine>Return_FileName = StringSoFar</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>INI_Read</ItemName>
  <ItemParams>SectionName As String, KeyName As String, INIPath As String</ItemParams>
  <ItemResult>String</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function INI_Read(SectionName As String, KeyName As String, INIPath As String) As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>#If TargetWin32 = False Then</SourceLine>
   <SourceLine>Return ""</SourceLine>
   <SourceLine>#EndIf</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return INI_Read(SectionName, KeyName, INIPath, "")</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>INI_Read</ItemName>
  <ItemParams>SectionName As String, KeyName As String, INIPath As String, DefaultValue As String</ItemParams>
  <ItemResult>String</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function INI_Read(SectionName As String, KeyName As String, INIPath As String, DefaultValue As String) As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>#If TargetWin32 = False Then</SourceLine>
   <SourceLine>Return ""</SourceLine>
   <SourceLine>#EndIf</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Declare Function GetPrivateProfileStringA Lib "KERNEL32.DLL" (ByVal lpApplicationName As CString, ByVal lpKeyName As CString, ByVal lpDefault As CString, ByVal lpReturnedString As CString, ByVal nSize As Integer, ByVal lpFileName As CString) As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intLength  As Integer</SourceLine>
   <SourceLine>Dim intCounter As Integer</SourceLine>
   <SourceLine>Dim strTemp    As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>strTemp = ""</SourceLine>
   <SourceLine>For intCounter = 1 To 260</SourceLine>
   <SourceLine>strTemp = strTemp + " "</SourceLine>
   <SourceLine>Next</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>intLength = GetPrivateProfileStringA(SectionName + Chr(0), KeyName + Chr(0), DefaultValue + Chr(0), strTemp, 260, INIPath + Chr(0))</SourceLine>
   <SourceLine>If intLength &lt; 1 Then</SourceLine>
   <SourceLine>Return ""</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>strTemp = Left(strTemp, intLength)</SourceLine>
   <SourceLine>Return strTemp</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>INI_Write</ItemName>
  <ItemParams>SectionName As String, KeyName As String, Value As String, INIPath As String</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>3</StartSelRow>
   <StartSelCol>6</StartSelCol>
   <EndSelRow>3</EndSelRow>
   <EndSelCol>6</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub INI_Write(SectionName As String, KeyName As String, Value As String, INIPath As String)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>#If TargetWin32 = False Then</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>#EndIf</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn As Boolean</SourceLine>
   <SourceLine>blnReturn = INI_Write(SectionName, KeyName, Value, INIPath)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>INI_Write</ItemName>
  <ItemParams>SectionName As String, KeyName As String, Value As String, INIPath As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>7</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>7</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function INI_Write(SectionName As String, KeyName As String, Value As String, INIPath As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>#If TargetWin32 = False Then</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>#EndIf</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Declare Function WritePrivateProfileStringA Lib "KERNEL32.DLL" (ByVal lpApplicationName As CString, ByVal lpKeyName As CString, ByVal LPString As CString, ByVal lpFileName As CString) As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>If WritePrivateProfileStringA(SectionName + Chr(0), KeyName + Chr(0), Value + Chr(0), INIPath + Chr(0)) &lt;&gt; 0 Then </SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadBinaryFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnReadWrite As Boolean, ByRef Return_FileContent As BinaryStream</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>11</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>11</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub LoadBinaryFile(ByVal strFilePath As String, ByVal blnReadWrite As Boolean, ByRef Return_FileContent As BinaryStream)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you call the "Close" method of the returned "BinaryStream", then set the </SourceLine>
   <SourceLine>'               returned "BinaryStream" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = LoadBinaryFile(strFilePath, blnReadWrite, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadBinaryFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnReadWrite As Boolean, ByRef Return_FileContent As BinaryStream</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>9</StartSelRow>
   <StartSelCol>11</StartSelCol>
   <EndSelRow>9</EndSelRow>
   <EndSelCol>11</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadBinaryFile(ByVal strFilePath As String, ByVal blnReadWrite As Boolean, ByRef Return_FileContent As BinaryStream) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you call the "Close" method of the returned "BinaryStream", then set the </SourceLine>
   <SourceLine>'               returned "BinaryStream" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return LoadBinaryFile(strFilePath, blnReadWrite, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadBinaryFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnReadWrite As Boolean, ByRef Return_FileContent As BinaryStream, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>52</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>52</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadBinaryFile(ByVal strFilePath As String, ByVal blnReadWrite As Boolean, ByRef Return_FileContent As BinaryStream, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you call the "Close" method of the returned "BinaryStream", then set the </SourceLine>
   <SourceLine>'               returned "BinaryStream" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim objStream As BinaryStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = False Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "The specified file was not found"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Open the file</SourceLine>
   <SourceLine>objStream = objFile.OpenAsBinaryFile(blnReadWrite)</SourceLine>
   <SourceLine>If IsNull(objStream) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to open the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objStream.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objStream.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Return the BinaryStream object</SourceLine>
   <SourceLine>Return_FileContent = objStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadTextFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_FileContent As String</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>7</StartSelRow>
   <StartSelCol>16</StartSelCol>
   <EndSelRow>7</EndSelRow>
   <EndSelCol>16</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub LoadTextFile(ByVal strFilePath As String, ByRef Return_FileContent As String)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = LoadTextFile(strFilePath, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadTextFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_FileContent As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>6</StartSelRow>
   <StartSelCol>11</StartSelCol>
   <EndSelRow>6</EndSelRow>
   <EndSelCol>11</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadTextFile(ByVal strFilePath As String, ByRef Return_FileContent As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return LoadTextFile(strFilePath, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadTextFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_FileContent As String, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>51</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>51</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadTextFile(ByVal strFilePath As String, ByRef Return_FileContent As String, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim objStream As TextInputStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_FileContent = ""</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = False Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "The specified file was not found"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Open the file</SourceLine>
   <SourceLine>objStream = objFile.OpenAsTextFile</SourceLine>
   <SourceLine>If IsNull(objStream) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to open the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objStream.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objStream.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get the contents of the file</SourceLine>
   <SourceLine>Return_FileContent = objStream.ReadAll</SourceLine>
   <SourceLine>objStream.Close</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return_FileContent = ""</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadPictureFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnPictureIsRaster As Boolean, ByRef Return_FileContent As Picture</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>9</StartSelRow>
   <StartSelCol>16</StartSelCol>
   <EndSelRow>9</EndSelRow>
   <EndSelCol>16</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub LoadPictureFile(ByVal strFilePath As String, ByVal blnPictureIsRaster As Boolean, ByRef Return_FileContent As Picture)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Picture" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = LoadPictureFile(strFilePath, blnPictureIsRaster, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadPictureFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnPictureIsRaster As Boolean, ByRef Return_FileContent As Picture</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>8</StartSelRow>
   <StartSelCol>11</StartSelCol>
   <EndSelRow>8</EndSelRow>
   <EndSelCol>11</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadPictureFile(ByVal strFilePath As String, ByVal blnPictureIsRaster As Boolean, ByRef Return_FileContent As Picture) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Picture" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return LoadPictureFile(strFilePath, blnPictureIsRaster, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadPictureFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnPictureIsRaster As Boolean, ByRef Return_FileContent As Picture, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>52</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>52</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadPictureFile(ByVal strFilePath As String, ByVal blnPictureIsRaster As Boolean, ByRef Return_FileContent As Picture, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Picture" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim objStream As Picture</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = False Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "The specified file was not found"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Open the file</SourceLine>
   <SourceLine>If blnPictureIsRaster = True Then</SourceLine>
   <SourceLine>objStream = objFile.OpenAsPicture</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>objStream = objFile.OpenAsVectorPicture</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>If IsNull(objStream) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to open the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Return the PICTURE object</SourceLine>
   <SourceLine>Return_FileContent = objStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>GetErrorDescription</ItemName>
  <ItemParams>ByVal lngErrorCode As Integer, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>33</ItemFlags>
  <ItemSource>
   <StartSelRow>3</StartSelRow>
   <StartSelCol>6</StartSelCol>
   <EndSelRow>3</EndSelRow>
   <EndSelCol>6</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub GetErrorDescription(ByVal lngErrorCode As Integer, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Select Case lngErrorCode</SourceLine>
   <SourceLine>Case 0</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine>Case FolderItem.DestDoesNotExistError</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "[100] The destination does not exist"</SourceLine>
   <SourceLine>Case FolderItem.FileNotFound</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "[101] The specified file was not found"</SourceLine>
   <SourceLine>Case FolderItem.AccessDenied</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "[102] Access Denied"</SourceLine>
   <SourceLine>Case FolderItem.NotEnoughMemory</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "[103] Out Of Memory"</SourceLine>
   <SourceLine>Case FolderItem.FileInUse</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "[104] The file is currently in use by another process"</SourceLine>
   <SourceLine>Case FolderItem.InvalidName</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "[105] Invalid file name"</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "Unknown"</SourceLine>
   <SourceLine>Return_ErrDesc = "An unknown error occured while trying to open the specified file"</SourceLine>
   <SourceLine>End Select</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadSoundFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_FileContent As Sound</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>9</StartSelRow>
   <StartSelCol>16</StartSelCol>
   <EndSelRow>9</EndSelRow>
   <EndSelCol>16</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub LoadSoundFile(ByVal strFilePath As String, ByRef Return_FileContent As Sound)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Sound" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = LoadSoundFile(strFilePath, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadSoundFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_FileContent As Sound</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>8</StartSelRow>
   <StartSelCol>11</StartSelCol>
   <EndSelRow>8</EndSelRow>
   <EndSelCol>11</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadSoundFile(ByVal strFilePath As String, ByRef Return_FileContent As Sound) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Sound" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return LoadSoundFile(strFilePath, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadSoundFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_FileContent As Sound, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>48</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>48</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadSoundFile(ByVal strFilePath As String, ByRef Return_FileContent As Sound, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Sound" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim objStream As Sound</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = False Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "The specified file was not found"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Open the file</SourceLine>
   <SourceLine>objStream = objFile.OpenAsSound</SourceLine>
   <SourceLine>If IsNull(objStream) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to open the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Return the SOUND object</SourceLine>
   <SourceLine>Return_FileContent = objStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadMovieFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnOpenEditable As Boolean, ByRef Return_FileContent As Variant</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>9</StartSelRow>
   <StartSelCol>16</StartSelCol>
   <EndSelRow>9</EndSelRow>
   <EndSelCol>16</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub LoadMovieFile(ByVal strFilePath As String, ByVal blnOpenEditable As Boolean, ByRef Return_FileContent As Variant)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Movie" / "EditableMovie" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = LoadMovieFile(strFilePath, blnOpenEditable, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadMovieFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnOpenEditable As Boolean, ByRef Return_FileContent As Variant</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>8</StartSelRow>
   <StartSelCol>11</StartSelCol>
   <EndSelRow>8</EndSelRow>
   <EndSelCol>11</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadMovieFile(ByVal strFilePath As String, ByVal blnOpenEditable As Boolean, ByRef Return_FileContent As Variant) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Movie" / "EditableMovie" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return LoadMovieFile(strFilePath, blnOpenEditable, Return_FileContent, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadMovieFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnOpenEditable As Boolean, ByRef Return_FileContent As Variant, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>57</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>57</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadMovieFile(ByVal strFilePath As String, ByVal blnOpenEditable As Boolean, ByRef Return_FileContent As Variant, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Movie" / "EditableMovie" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile    As FolderItem</SourceLine>
   <SourceLine>Dim objStream1 As Movie</SourceLine>
   <SourceLine>Dim objStream2 As EditableMovie</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = False Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "The specified file was not found"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Open the file </SourceLine>
   <SourceLine>If blnOpenEditable = False Then</SourceLine>
   <SourceLine>objStream1 = objFile.OpenAsMovie</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>objStream2 = objFile.OpenEditableMovie</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>If IsNull(objStream1) = True And IsNull(objStream2) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to open the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Return the MOVIE object</SourceLine>
   <SourceLine>If blnOpenEditable = False Then</SourceLine>
   <SourceLine>Return_FileContent = objStream1</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return_FileContent = objStream2</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return_FileContent = Nil</SourceLine>
   <SourceLine>objStream1 = Nil</SourceLine>
   <SourceLine>objStream2 = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SaveTextFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal strFileContent As String, ByVal blnOverwriteIfExists As Boolean</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>6</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>6</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub SaveTextFile(ByVal strFilePath As String, ByVal strFileContent As String, ByVal blnOverwriteIfExists As Boolean)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = SaveTextFile(strFilePath, strFileContent, blnOverwriteIfExists, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SaveTextFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal strFileContent As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_ErrNum As Integer</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>6</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>6</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function SaveTextFile(ByVal strFilePath As String, ByVal strFileContent As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_ErrNum As Integer) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return SaveTextFile(strFilePath, strFileContent, blnOverwriteIfExists, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SaveTextFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal strFileContent As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>48</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>48</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function SaveTextFile(ByVal strFilePath As String, ByVal strFileContent As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim objStream As TextOutputStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = True And blnOverwriteIfExists = True Then</SourceLine>
   <SourceLine>objFile.Delete</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Open the file</SourceLine>
   <SourceLine>objStream = objFile.AppendToTextFile ' If the file doesn't exist it will be created.  If the file does exist, it will be appended to.</SourceLine>
   <SourceLine>If IsNull(objStream) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to open the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objStream.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objStream.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Write out the contents to the file</SourceLine>
   <SourceLine>objStream.Write strFileContent</SourceLine>
   <SourceLine>objStream.Flush</SourceLine>
   <SourceLine>objStream.Close</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SaveBinaryFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_BinaryStream As BinaryStream</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>12</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>12</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub SaveBinaryFile(ByVal strFilePath As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_BinaryStream As BinaryStream)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you call the "Flush", then the "Close" methods after you're done </SourceLine>
   <SourceLine>'               writing out to the returned "BinaryStream" object.  Then, set the returned </SourceLine>
   <SourceLine>'               "BinaryStream" object equal to NIL.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = SaveBinaryFile(strFilePath, blnOverwriteIfExists, Return_BinaryStream, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SaveBinaryFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_BinaryStream As BinaryStream</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>4</StartSelRow>
   <StartSelCol>51</StartSelCol>
   <EndSelRow>4</EndSelRow>
   <EndSelCol>51</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function SaveBinaryFile(ByVal strFilePath As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_BinaryStream As BinaryStream) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you call the "Flush", then the "Close" methods after you're done </SourceLine>
   <SourceLine>'               writing out to the returned "BinaryStream" object.  Then, set the returned </SourceLine>
   <SourceLine>'               "BinaryStream" object equal to NIL.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return SaveBinaryFile(strFilePath, blnOverwriteIfExists, Return_BinaryStream, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SaveBinaryFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_BinaryStream As BinaryStream, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>51</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>51</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function SaveBinaryFile(ByVal strFilePath As String, ByVal blnOverwriteIfExists As Boolean, ByRef Return_BinaryStream As BinaryStream, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you call the "Flush", then the "Close" methods after you're done </SourceLine>
   <SourceLine>'               writing out to the returned "BinaryStream" object.  Then, set the returned </SourceLine>
   <SourceLine>'               "BinaryStream" object equal to NIL.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim objStream As BinaryStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_BinaryStream = Nil</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = True And blnOverwriteIfExists = True Then</SourceLine>
   <SourceLine>objFile.Delete</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Open the file</SourceLine>
   <SourceLine>objStream = objFile.CreateBinaryFile("")</SourceLine>
   <SourceLine>If IsNull(objStream) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to open the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objStream.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objStream.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Return the created BINARY STREAM</SourceLine>
   <SourceLine>Return_BinaryStream = objStream</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>objStream = Nil</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SavePictureFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal objPicture As Picture</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>24</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>24</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub SavePictureFile(ByVal strFilePath As String, ByVal objPicture As Picture)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim blnReturn As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file and delete it if it already exists</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>ElseIf objFile.Exists = True Then</SourceLine>
   <SourceLine>objFile.Delete</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Save the picture as a BITMAP</SourceLine>
   <SourceLine>objFile.SaveAsPicture objPicture, objFile.SaveAsWindowsBMP</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>ExecuteURL</ItemName>
  <ItemParams>ByVal strAddressOrEmail As String</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>4</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>4</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub ExecuteURL(ByVal strAddressOrEmail As String)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' This will open the default internet browser or Email client for the specified </SourceLine>
   <SourceLine>' HTTP, HTTPS, FTP, or Email address</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>ShowURL strAddressOrEmail</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>ExecuteFile</ItemName>
  <ItemParams>ByVal strFilePath As String</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>9</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>9</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub ExecuteFile(ByVal strFilePath As String)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' This function is mean to run EXECUTABLE files (i.e. - *.EXE, *.BAT, *.COM, *.PIF, etc).</SourceLine>
   <SourceLine>' If you need to run a DOS command (i.e. PING, IPCONFIG, DIR, etc), call "ExecuteDosCommand" instead.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = ExecuteFile(strFilePath, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>ExecuteFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>37</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>37</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function ExecuteFile(ByVal strFilePath As String, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' This function is mean to run EXECUTABLE files (i.e. - *.EXE, *.BAT, *.COM, *.PIF, etc).</SourceLine>
   <SourceLine>' If you need to run a DOS command (i.e. PING, IPCONFIG, DIR, etc), call "ExecuteDosCommand" instead.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objShell   As Shell</SourceLine>
   <SourceLine>Dim strReturn  As String</SourceLine>
   <SourceLine>Dim intErrCode As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set the default values</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Create the SHELL object, set it up, then execute the file</SourceLine>
   <SourceLine>objShell = New Shell</SourceLine>
   <SourceLine>objShell.Mode = 1 'Asynchronous</SourceLine>
   <SourceLine>objShell.TimeOut = 2000 '2 seconds</SourceLine>
   <SourceLine>objShell.Execute strFilePath</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get the returned buffer and clean up the SHELL object</SourceLine>
   <SourceLine>strReturn = objShell.Result</SourceLine>
   <SourceLine>intErrCode = objShell.ErrorCode</SourceLine>
   <SourceLine>objShell = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' If the returned error was a TIME OUT error... ignore it because that happens when calling any EXECUTABLE file</SourceLine>
   <SourceLine>If Left(UpperCase(strReturn), 15) = "SHELL TIMED OUT" Then</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>ElseIf intErrCode &lt; 0 Then</SourceLine>
   <SourceLine>Return_ErrNum = intErrCode</SourceLine>
   <SourceLine>Return_ErrType = "Unknown"</SourceLine>
   <SourceLine>Return_ErrDesc = strReturn</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>ExecuteDosCommand</ItemName>
  <ItemParams>ByVal strDosCommand As String, ByVal intTimeOutMilliseconds As Integer</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>5</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>5</EndSelRow>
   <EndSelCol>0</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub ExecuteDosCommand(ByVal strDosCommand As String, ByVal intTimeOutMilliseconds As Integer)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' This function is mean to run a DOS command (i.e. PING, IPCONFIG, DIR, etc).</SourceLine>
   <SourceLine>' If you need to run an EXECUTABLE files (i.e. - *.EXE, *.BAT, *.COM, *.PIF, etc), call "ExecuteFile" instead.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim strReturn  As String</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = ExecuteDosCommand(strDosCommand, intTimeOutMilliseconds, strReturn, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>ExecuteDosCommand</ItemName>
  <ItemParams>ByVal strDosCommand As String, ByVal intTimeOutMilliseconds As Integer, ByRef Return_Text As String, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>41</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>41</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function ExecuteDosCommand(ByVal strDosCommand As String, ByVal intTimeOutMilliseconds As Integer, ByRef Return_Text As String, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' This function is mean to run a DOS command (i.e. PING, IPCONFIG, DIR, etc).</SourceLine>
   <SourceLine>' If you need to run an EXECUTABLE files (i.e. - *.EXE, *.BAT, *.COM, *.PIF, etc), call "ExecuteFile" instead.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objShell   As Shell</SourceLine>
   <SourceLine>Dim strReturn  As String</SourceLine>
   <SourceLine>Dim intErrCode As Integer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set the default values</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' MS-DOS commands need some time to execute... make sure to give at least 5 seconds</SourceLine>
   <SourceLine>If intTimeOutMilliseconds &lt; 5000 Then intTimeOutMilliseconds = 5000</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>'This is to work around a CRASH when calling the MS-DOS command "DIR"</SourceLine>
   <SourceLine>If UpperCase(strDosCommand) = "DIR" Then strDosCommand = "dir /4" </SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Create the SHELL object, set it up, then execute the file</SourceLine>
   <SourceLine>objShell = New Shell</SourceLine>
   <SourceLine>objShell.Mode = 1 'Asynchronous</SourceLine>
   <SourceLine>objShell.TimeOut = intTimeOutMilliseconds</SourceLine>
   <SourceLine>objShell.Execute strDosCommand</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get the returned buffer and clean up the SHELL object</SourceLine>
   <SourceLine>strReturn = objShell.Result</SourceLine>
   <SourceLine>intErrCode = objShell.ErrorCode</SourceLine>
   <SourceLine>objShell = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' If the returned error was a TIME OUT error... ignore it because that happens when calling any EXECUTABLE file</SourceLine>
   <SourceLine>If intErrCode &lt; 0 Then</SourceLine>
   <SourceLine>Return_ErrNum = intErrCode</SourceLine>
   <SourceLine>Return_ErrType = "Unknown"</SourceLine>
   <SourceLine>Return_ErrDesc = strReturn</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SavePictureFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal objPicture As Picture, ByVal strPictureFormat As String, ByVal intPictureQuality As Integer</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>71</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>71</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub SavePictureFile(ByVal strFilePath As String, ByVal objPicture As Picture, ByVal strPictureFormat As String, ByVal intPictureQuality As Integer)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' IMPORTANT: This function uses QuickTime to save picture in formats other than </SourceLine>
   <SourceLine>'            "BMP", "WMF", and "EMF".  The user must have QT installed for this</SourceLine>
   <SourceLine>'            function to work properly.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objExport As QTGraphicsExporter</SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim blnReturn As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file and delete it if it already exists</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>ElseIf objFile.Exists = True Then</SourceLine>
   <SourceLine>objFile.Delete</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Validate the picture format</SourceLine>
   <SourceLine>strPictureFormat = UpperCase(Trim(strPictureFormat))</SourceLine>
   <SourceLine>If strPictureFormat &lt;&gt; PicFormat_BMP And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_JPEG And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_MacPaint And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_Photoshop And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_PNG And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_TARGA And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_WMF And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_EMF And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_SGI Then</SourceLine>
   <SourceLine>strPictureFormat = PicFormat_BMP</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Validate picture quality</SourceLine>
   <SourceLine>If intPictureQuality &lt;&gt; PicQuality_Lowest And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Low And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Normal And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_High And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Higher And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Highest Then</SourceLine>
   <SourceLine>intPictureQuality = PicQuality_High</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Use the "FolderItem" class to save the file where possible</SourceLine>
   <SourceLine>If strPictureFormat = PicFormat_BMP Then</SourceLine>
   <SourceLine>objFile.SaveAsPicture objPicture, objFile.SaveAsWindowsBMP</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>ElseIf strPictureFormat = PicFormat_WMF Then</SourceLine>
   <SourceLine>objFile.SaveAsPicture objPicture, objFile.SaveAsWindowsWMF</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>ElseIf strPictureFormat = PicFormat_EMF Then</SourceLine>
   <SourceLine>objFile.SaveAsPicture objPicture, objFile.SaveAsWindowsEMF</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get an instance of the exporter and save the picture</SourceLine>
   <SourceLine>objExport = GetQTGraphicsExporter(strPictureFormat)</SourceLine>
   <SourceLine>objExport.CompressionQuality = intPictureQuality</SourceLine>
   <SourceLine>blnReturn = objExport.SavePicture(objFile, objPicture)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>objExport = Nil</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>objExport = Nil</SourceLine>
   <SourceLine>Return</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>SavePictureFile</ItemName>
  <ItemParams>ByVal strFilePath As String, ByVal objPicture As Picture, ByVal strPictureFormat As String, ByVal intPictureQuality As Integer, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>80</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>80</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function SavePictureFile(ByVal strFilePath As String, ByVal objPicture As Picture, ByVal strPictureFormat As String, ByVal intPictureQuality As Integer, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' IMPORTANT: This function uses QuickTime to save picture in formats other than </SourceLine>
   <SourceLine>'            "BMP", "WMF", and "EMF".  The user must have QT installed for this</SourceLine>
   <SourceLine>'            function to work properly.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim objExport As QTGraphicsExporter</SourceLine>
   <SourceLine>Dim objFile   As FolderItem</SourceLine>
   <SourceLine>Dim blnReturn As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get a reference to the file</SourceLine>
   <SourceLine>objFile = GetFolderItem(strFilePath)</SourceLine>
   <SourceLine>If IsNull(objFile) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to the specified file"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>If objFile.LastErrorCode &lt;&gt; 0 Then</SourceLine>
   <SourceLine>GetErrorDescription objFile.LastErrorCode, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>ElseIf objFile.Exists = True Then</SourceLine>
   <SourceLine>objFile.Delete</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Validate the picture format</SourceLine>
   <SourceLine>strPictureFormat = UpperCase(Trim(strPictureFormat))</SourceLine>
   <SourceLine>If strPictureFormat &lt;&gt; PicFormat_BMP And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_JPEG And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_MacPaint And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_Photoshop And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_PNG And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_TARGA And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_WMF And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_EMF And _</SourceLine>
   <SourceLine>strPictureFormat &lt;&gt; PicFormat_SGI Then</SourceLine>
   <SourceLine>strPictureFormat = PicFormat_BMP</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Validate picture quality</SourceLine>
   <SourceLine>If intPictureQuality &lt;&gt; PicQuality_Lowest And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Low And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Normal And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_High And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Higher And _</SourceLine>
   <SourceLine>intPictureQuality &lt;&gt; PicQuality_Highest Then</SourceLine>
   <SourceLine>intPictureQuality = PicQuality_High</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Use the "FolderItem" class to save the file where possible</SourceLine>
   <SourceLine>If strPictureFormat = PicFormat_BMP Then</SourceLine>
   <SourceLine>objFile.SaveAsPicture objPicture, objFile.SaveAsWindowsBMP</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>ElseIf strPictureFormat = PicFormat_WMF Then</SourceLine>
   <SourceLine>objFile.SaveAsPicture objPicture, objFile.SaveAsWindowsWMF</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>ElseIf strPictureFormat = PicFormat_EMF Then</SourceLine>
   <SourceLine>objFile.SaveAsPicture objPicture, objFile.SaveAsWindowsEMF</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Get an instance of the exporter and save the picture</SourceLine>
   <SourceLine>objExport = GetQTGraphicsExporter(strPictureFormat)</SourceLine>
   <SourceLine>objExport.CompressionQuality = intPictureQuality</SourceLine>
   <SourceLine>blnReturn = objExport.SavePicture(objFile, objPicture)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Clean up</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>objExport = Nil</SourceLine>
   <SourceLine>Return blnReturn</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>objFile = Nil</SourceLine>
   <SourceLine>objExport = Nil</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadMovieURL</ItemName>
  <ItemParams>ByVal strURL As String, ByRef Return_Movie As Movie</ItemParams>
  <ItemResult></ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>11</StartSelRow>
   <StartSelCol>16</StartSelCol>
   <EndSelRow>11</EndSelRow>
   <EndSelCol>16</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Sub LoadMovieURL(ByVal strURL As String, ByRef Return_Movie As Movie)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : This function requires that the user have QuickTime 4 or better installed on their computer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Movie" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim blnReturn  As Boolean</SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>blnReturn = LoadMovieURL(strURL, Return_Movie, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Sub</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadMovieURL</ItemName>
  <ItemParams>ByVal strURL As String, ByRef Return_Movie As Movie</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>10</StartSelRow>
   <StartSelCol>11</StartSelCol>
   <EndSelRow>10</EndSelRow>
   <EndSelCol>11</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadMovieURL(ByVal strURL As String, ByRef Return_Movie As Movie) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : This function requires that the user have QuickTime 4 or better installed on their computer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Movie" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Dim intErrNum  As Integer</SourceLine>
   <SourceLine>Dim strErrType As String</SourceLine>
   <SourceLine>Dim strErrDesc As String</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Return LoadMovieURL(strURL, Return_Movie, intErrNum, strErrType, strErrDesc)</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Method>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>LoadMovieURL</ItemName>
  <ItemParams>ByVal strURL As String, ByRef Return_Movie As Movie, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String</ItemParams>
  <ItemResult>Boolean</ItemResult>
  <ItemFlags>0</ItemFlags>
  <ItemSource>
   <StartSelRow>23</StartSelRow>
   <StartSelCol>0</StartSelCol>
   <EndSelRow>23</EndSelRow>
   <EndSelCol>13</EndSelCol>
   <TextEncoding>134217984</TextEncoding>
   <SourceLine>Function LoadMovieURL(ByVal strURL As String, ByRef Return_Movie As Movie, ByRef Return_ErrNum As Integer, ByRef Return_ErrType As String, ByRef Return_ErrDesc As String) As Boolean</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : This function requires that the user have QuickTime 4 or better installed on their computer</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' * IMPORTANT : Make sure you set the returned "Movie" object equal to NIL.  Otherwise, you will have a memory leak.</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Set default values</SourceLine>
   <SourceLine>Return_Movie = Nil</SourceLine>
   <SourceLine>Return_ErrNum = 0</SourceLine>
   <SourceLine>Return_ErrType = ""</SourceLine>
   <SourceLine>Return_ErrDesc = ""</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>' Attempt to get a reference to the specified URL</SourceLine>
   <SourceLine>Return_Movie = OpenURLMovie(strURL)</SourceLine>
   <SourceLine>If IsNull(Return_Movie) = True Then</SourceLine>
   <SourceLine>Return_ErrNum = -1</SourceLine>
   <SourceLine>Return_ErrType = "RuntimeException"</SourceLine>
   <SourceLine>Return_ErrDesc = "Failed to get a reference to movie file at the specified URL"</SourceLine>
   <SourceLine>Return False</SourceLine>
   <SourceLine>Else</SourceLine>
   <SourceLine>Return True</SourceLine>
   <SourceLine>End If</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>Exception Err As RuntimeException</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>GetErrorInfo Err, Return_ErrNum, Return_ErrType, Return_ErrDesc</SourceLine>
   <SourceLine>Return_Movie = Nil</SourceLine>
   <SourceLine></SourceLine>
   <SourceLine>End Function</SourceLine>
  </ItemSource>
 </Method>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_BMP</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>BMPf</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_JPEG</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>JPEG</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_PNG</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>PNGf</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_TARGA</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>TPIC</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_Photoshop</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>8BPS</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_MacPaint</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>PNTG</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_SGI</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>.SGI</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicQuality_Lowest</ItemName>
  <ItemType>1</ItemType>
  <ItemDef>0</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicQuality_Low</ItemName>
  <ItemType>1</ItemType>
  <ItemDef>256</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicQuality_Normal</ItemName>
  <ItemType>1</ItemType>
  <ItemDef>512</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicQuality_High</ItemName>
  <ItemType>1</ItemType>
  <ItemDef>768</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicQuality_Higher</ItemName>
  <ItemType>1</ItemType>
  <ItemDef>1023</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicQuality_Highest</ItemName>
  <ItemType>1</ItemType>
  <ItemDef>1024</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_WMF</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>.WMF</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Constant>
  <TextEncoding>134217984</TextEncoding>
  <ItemName>PicFormat_EMF</ItemName>
  <ItemType>0</ItemType>
  <ItemDef>.EMF</ItemDef>
  <ItemFlags>0</ItemFlags>
 </Constant>
 <Interfaces></Interfaces>
</block>
</RBProject>
