ULT
</code></pre>
<h4 id="return-value">Return value</h4>
<p>Returns S_OK on success, or an error HRESULT on failure. Error DISP_E_ARRAYISLOCKED: The array is locked.</p>
<h4 id="usage-example:">Usage example:</h4>
<pre><code>#INCLUDE ONCE &quot;Afx/CStack.inc&quot;
using Afx

DIM pStack AS CStack
pStack.Push &quot;String 1&quot;
pStack.Push &quot;String 2&quot;
DIM cv AS CVAR
cv = pStack.Pop
PRINT cv
cv = pStack.Pop
PRINT cv

' --or--

PRINT pStack.Pop
PRINT pStack.Pop
</code></pre>
<h1 id="pop"><a name="P