CollectionHasNextProperty

This method returns true if the current position pointer within the collection parameter is pointing to a valid member of the collection; that is, if a call to NextCollectionProperty will return an actual instance from the collection. If the position pointer is at the end of the collection, this method returns false.

Prototype

BOOL CollectionHasNextProperty (VARIANT const collection)

Parameters

  • collection - The collection property to be evaluated for a valid next member based on the collection’s position pointer.

Return Value

Boolean value indicating whether the position pointer references a valid collection member, or the end of the collection:
  • true - Returned if the position pointer of the collection parameter points to a valid member of the collection.
  • false - Returned if the position pointer of the collection parameter indicates the end of the collection has been reached.