Variant does not contain a container

You referred to a variable of type Variant as though it held an array or list, but it does not hold one of these. For example:

Dim varV As Variant
varV(1) = 5			' Illegal.

or

Dim varV As Variant
varV = "Rex Robins"
Forall CustName In varV	' Error!

For the Forall statement, none of the Notes® built-in classes (such as NotesDocumentCollection) are supported. Use the supplied methods (GetFirst, GetNext) with a Do or While statement, instead.

You can often catch this type of error at compile time if you declare your variables to specific types instead of using the default Variant type.

See also:

Option Declare Statement