Routines (alphabetical) > Object Classes > Miscellaneous Object Classes > IDL_Container::IsContained

# IDL_Container::IsContained

The IDL_Container::IsContained function method returns true (1) if the specified item is in the container, or false (0) otherwise.

## Syntax

Result = Obj->[IDL_Container::]IsContained( Heapvar [, POSITION=variable] )

## Return Value

A scalar or array of zeroes (0) and ones (1).

## Arguments

### Heapvar

A scalar or array of heap variables (object references or pointers) to search for in the container.

## Keywords

### POSITION

Set this keyword to a named variable that upon return will contain the positions within the container of each of the items, or the value -1 if that item is not contained.

## Version History

5.0 | Introduced
8.4 | Add support for pointers within containers

## See Also

IDL_Container::Add, IDL_Container::Count, IDL_Container::Equals, IDL_Container::Get, IDL_Container::Move, IDL_Container::Remove