<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Farchive%2Fcode%2FVBA%2FclsPackageQueue</id>
	<title>VbzCart/archive/code/VBA/clsPackageQueue - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Farchive%2Fcode%2FVBA%2FclsPackageQueue"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/clsPackageQueue&amp;action=history"/>
	<updated>2026-06-25T12:33:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/clsPackageQueue&amp;diff=28621&amp;oldid=prev</id>
		<title>Woozle at 12:49, 14 October 2022</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/clsPackageQueue&amp;diff=28621&amp;oldid=prev"/>
		<updated>2022-10-14T12:49:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:49, 14 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;VB&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang=&lt;/ins&gt;VB&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039; CLASS: clsPackageQueue&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039; CLASS: clsPackageQueue&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l86&quot;&gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Me.DataShut&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Me.DataShut&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;End Sub&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;End Sub&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VB&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/clsPackageQueue&amp;diff=20372&amp;oldid=prev</id>
		<title>Woozle: Woozle moved page VbzCart/code/VBA/clsPackageQueue to VbzCart/archive/code/VBA/clsPackageQueue</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/clsPackageQueue&amp;diff=20372&amp;oldid=prev"/>
		<updated>2014-12-19T02:08:59Z</updated>

		<summary type="html">&lt;p&gt;Woozle moved page &lt;a href=&quot;/mw/index.php?title=VbzCart/code/VBA/clsPackageQueue&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;VbzCart/code/VBA/clsPackageQueue (page does not exist)&quot;&gt;VbzCart/code/VBA/clsPackageQueue&lt;/a&gt; to &lt;a href=&quot;/VbzCart/archive/code/VBA/clsPackageQueue&quot; title=&quot;VbzCart/archive/code/VBA/clsPackageQueue&quot;&gt;VbzCart/archive/code/VBA/clsPackageQueue&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:08, 19 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/clsPackageQueue&amp;diff=19997&amp;oldid=prev</id>
		<title>Woozle: Created page with &quot;&lt;VB&gt; &#039; CLASS: clsPackageQueue  Option Compare Database Option Explicit  Private rs As Recordset Private intAccessCount As Long Public Sub Init()     intAccessCount = 0     Set...&quot;</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/clsPackageQueue&amp;diff=19997&amp;oldid=prev"/>
		<updated>2014-05-08T00:49:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;VB&amp;gt; &amp;#039; CLASS: clsPackageQueue  Option Compare Database Option Explicit  Private rs As Recordset Private intAccessCount As Long Public Sub Init()     intAccessCount = 0     Set...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;VB&amp;gt;&lt;br /&gt;
&amp;#039; CLASS: clsPackageQueue&lt;br /&gt;
&lt;br /&gt;
Option Compare Database&lt;br /&gt;
Option Explicit&lt;br /&gt;
&lt;br /&gt;
Private rs As Recordset&lt;br /&gt;
Private intAccessCount As Long&lt;br /&gt;
Public Sub Init()&lt;br /&gt;
    intAccessCount = 0&lt;br /&gt;
    Set rs = Nothing&lt;br /&gt;
End Sub&lt;br /&gt;
Public Property Get Data() As Recordset&lt;br /&gt;
    Set Data = rs&lt;br /&gt;
End Property&lt;br /&gt;
Public Sub DataOpen()&lt;br /&gt;
    If intAccessCount = 0 Then&lt;br /&gt;
        Set rs = CurrentDb.OpenRecordset(&amp;quot;Select Packages&amp;quot;, dbOpenDynaset)&lt;br /&gt;
    End If&lt;br /&gt;
    intAccessCount = intAccessCount + 1&lt;br /&gt;
End Sub&lt;br /&gt;
Public Sub DataShut()&lt;br /&gt;
    intAccessCount = intAccessCount - 1&lt;br /&gt;
    If intAccessCount = 0 Then&lt;br /&gt;
        rs.Close&lt;br /&gt;
        Set rs = Nothing&lt;br /&gt;
    End If&lt;br /&gt;
End Sub&lt;br /&gt;
Public Sub Add(iPackage As Long, iReport As String)&lt;br /&gt;
    Dim objItem As clsPackageQueueItem&lt;br /&gt;
    &lt;br /&gt;
    Set objItem = New clsPackageQueueItem&lt;br /&gt;
    objItem.Create iPackage, iReport&lt;br /&gt;
End Sub&lt;br /&gt;
Public Property Get Item(iID As Long) As clsPackageQueueItem&lt;br /&gt;
    Dim objItem As clsPackageQueueItem&lt;br /&gt;
&lt;br /&gt;
    Me.DataOpen&lt;br /&gt;
    With Me.Data&lt;br /&gt;
        .FindFirst &amp;quot;ID=&amp;quot; &amp;amp; iID&lt;br /&gt;
        If .NoMatch Then&lt;br /&gt;
            Set objItem = Nothing&lt;br /&gt;
        Else&lt;br /&gt;
            Set objItem = New clsPackageQueueItem&lt;br /&gt;
            objItem.Init .Fields&lt;br /&gt;
        End If&lt;br /&gt;
    End With&lt;br /&gt;
    Me.DataShut&lt;br /&gt;
    Set Item = objItem&lt;br /&gt;
End Property&lt;br /&gt;
Public Property Get ItemFound(iPackage As Long, iReport As String) As clsPackageQueueItem&lt;br /&gt;
    Dim objItem As clsPackageQueueItem&lt;br /&gt;
&lt;br /&gt;
    Me.DataOpen&lt;br /&gt;
    With Me.Data&lt;br /&gt;
        .FindFirst &amp;quot;ID_Package=&amp;quot; &amp;amp; iPackage &amp;amp; &amp;quot; AND ReportName=&amp;quot;&amp;quot;&amp;quot; &amp;amp; iReport &amp;amp; &amp;quot;&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
        If .NoMatch Then&lt;br /&gt;
            Set objItem = Nothing&lt;br /&gt;
        Else&lt;br /&gt;
            Set objItem = New clsPackageQueueItem&lt;br /&gt;
            objItem.Init .Fields&lt;br /&gt;
        End If&lt;br /&gt;
    End With&lt;br /&gt;
    Me.DataShut&lt;br /&gt;
    Set ItemFound = objItem&lt;br /&gt;
End Property&lt;br /&gt;
Public Property Get IsEmpty() As Boolean&lt;br /&gt;
&amp;#039; ACTION: Returns TRUE iff the queue is empty&lt;br /&gt;
    Me.DataOpen&lt;br /&gt;
    With Me.Data&lt;br /&gt;
        IsEmpty = (.RecordCount = 0)&lt;br /&gt;
    End With&lt;br /&gt;
    Me.DataShut&lt;br /&gt;
End Property&lt;br /&gt;
Public Sub Clear()&lt;br /&gt;
    Me.DataOpen&lt;br /&gt;
    With Me.Data&lt;br /&gt;
        If .RecordCount Then&lt;br /&gt;
            .MoveLast&lt;br /&gt;
            Do Until .BOF&lt;br /&gt;
                .Delete&lt;br /&gt;
                .MovePrevious&lt;br /&gt;
            Loop&lt;br /&gt;
        End If&lt;br /&gt;
    End With&lt;br /&gt;
    Me.DataShut&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/VB&amp;gt;&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>