Access/VBA Library

MaxQueueDepth Property

Sets or returns the maximum number of elements which can be stored in the queue. Type Long.

Syntax

queue.MaxQueueDepth[ = NewMaxQueueDepth]
Parts
Name Type Description
queue   The name of an object of type queue
NewMaxQueueDepth Long Optional. The new size of the queue.

Remarks

  • When zero, the number of elements will be unlimited When NewMaxQueueDepth is less than zero the error "Can't perform requested operation" will raise.
  • When the new queue depth is set and the current queue depth exceeds this new depth, the queue will not be changed. The property IsFull is set to True in this case.