Brian Dunning's FileMaker Custom Functions

DQ_Count ( deque )

Returns the number of items in a deque (stack, queue)

  Average rating: 4.3 (30 votes) Log in to vote

Stephen Hanna   Stephen Hanna
Stephen J. Hanna Consulting

Share on Facebook Share on Twitter

  Sample input:
DQ_Count ( $myDeque )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This is the "count" function of the DeQue (double-ended queue) function package. It returns the number of items in the specified DeQue. See DQ_New() for a complete description.

Typical usage scenario:

Set Variable [ $myDeque ; DQ_New ( "apple " ) ]
Set Variable [ $dummy ; DQ_Push ( $myDeque ; "banana" ) ]
Set Variable [ $dummy ; DQ_Put ( $myDeque ; "kumquat" ) ]
Set Variable ( $count ; DQ_Count ( $myDeque ) ] // $count = 3



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.