https://www.reliawiki.com/index.php?title=CScheduledTask.GetPools_Method&feed=atom&action=history
CScheduledTask.GetPools Method - Revision history
2024-03-29T06:00:05Z
Revision history for this page on the wiki
MediaWiki 1.39.2
https://www.reliawiki.com/index.php?title=CScheduledTask.GetPools_Method&diff=65398&oldid=prev
David J. Groebel at 18:37, 10 August 2018
2018-08-10T18:37:09Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:37, 10 August 2018</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l8">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>== Syntax ==</div></td><td class="diff-marker"></td><td style="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;"><div>== Syntax ==</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> '''.GetPools'''(''arr()'')</div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> '''.GetPools'''(<ins style="font-weight: bold; text-decoration: none;">{{APIPrefix|ByRef}} </ins>''arr()'')</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>===Parameters===</div></td><td class="diff-marker"></td><td style="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;"><div>===Parameters===</div></td></tr>
</table>
David J. Groebel
https://www.reliawiki.com/index.php?title=CScheduledTask.GetPools_Method&diff=65390&oldid=prev
David J. Groebel: Created page with '{{DISPLAYTITLE:cScheduledTask.GetPools Method}}{{Template:API}}{{Template:APIBreadcrumb|.cScheduledTask}} <onlyinclude>Returns an array of the Pool IDs…'
2018-08-10T00:18:49Z
<p>Created page with '{{DISPLAYTITLE:cScheduledTask.GetPools Method}}{{Template:API}}{{Template:APIBreadcrumb|.<a href="/index.php/CScheduledTask_Class" title="CScheduledTask Class">cScheduledTask</a>}} <onlyinclude>Returns an array of the Pool IDs…'</p>
<p><b>New page</b></p><div>{{DISPLAYTITLE:cScheduledTask.GetPools Method}}{{Template:API}}{{Template:APIBreadcrumb|.[[CScheduledTask_Class|cScheduledTask]]}}<br />
<br />
<br />
<onlyinclude>Returns an array of the Pool IDs and number of parts for all pools required for the task.</onlyinclude><br />
<br />
<br />
'''Remarks''': Alternatively, .NET users can use the <code>Pools()</code> property in the class to get or set the Pools IDs and number of parts.<br />
<br />
== Syntax ==<br />
'''.GetPools'''(''arr()'')<br />
<br />
===Parameters===<br />
''arr()''<br />
:Required as [[PoolInfo|PoolInfo]]. An array of the Pool IDs and the number of parts for all pools required for the task.<br />
<br />
<br />
== Example ==<br />
'''VBA'''<br />
<br />
{{APIComment|...}}<br />
<br />
{{APIComment|'Add code to get an existing scheduled task.}}<br />
{{APIPrefix|Dim}} aTask {{APIPrefix|As}} cScheduledTask<br />
{{APIComment|...}}<br />
<br />
{{APIComment|'Get the IDs of the crews assigned to the task.}}<br />
{{APIPrefix|Dim}} myarray() {{APIPrefix|As PoolInfo}}<br />
{{APIPrefix|Call}} aTask.GetPools(myarray)<br />
<br />
{{APIComment|'Sample output.}}<br />
{{APIPrefix|Dim}} i {{APIPrefix|As Integer}}<br />
{{APIPrefix|Dim}} upper {{APIPrefix|As Integer}}<br />
{{APIPrefix|Dim}} lower {{APIPrefix|As Integer}}<br />
<br />
lower = {{APIPrefix|LBound}}(myarray)<br />
upper = {{APIPrefix|UBound}}(myarray)<br />
<br />
{{APIPrefix|For}} i = lower {{APIPrefix|To}} upper<br />
MsgBox "Pool ID = " & myarray(i).ID &". Number of Parts = " & myarray(i).NumParts<br />
{{APIPrefix|Next}} i</div>
David J. Groebel