Help Center

CQueue.Enqueuemethod

Appends a variant at the end of the collection.

COMmethodCStack.incdocumented

Syntax

FUNCTION Enqueue (BYREF dv AS DVARIANT) AS HRESULT

Return value

Returns S_OK on success, or an error HRESULT on failure.

Error DISP_E_ARRAYISLOCKED: The array is locked.

Description

Appends a variant at the end of the collection.

Example

#INCLUDE ONCE "AfxNova/CStack.inc" USING AfxNova

DIM pQueue AS CQueue pQueue.Enqueue "String 1" pQueue.Enqueue 12345.12 print pQueue.Dequeue print pQueue.Dequeue

Reference

  • Include file CStack.inc
  • Defined in AfxNova/CStack.inc:151
  • Documented in COM/Stacks and Queues.md
  • Topic: CStack Class