Share via


CComSafeArrayBound::SetLowerBound

 

Call this method to set the lower bound.

Syntax

      LONG SetLowerBound(
   LONG lLowerBound 
) throw( );

Parameters

  • lLowerBound
    The lower bound.

Return Value

Returns the new lower bound of the CComSafeArrayBound object.

Remarks

If the array is to be accessed from a Visual C++ program, it is recommended that the lower bound be defined as 0. It may be preferable to use a different lower bound value if the array is to be used with other languages, such as Visual Basic.

The upper bound depends on the number of elements and the lower bound value. For example, if the lower bound is 0 and the number of elements is 10, the upper bound will automatically be set to 9.

Requirements

Header: atlsafe.h

See Also

CComSafeArrayBound Class
CComSafeArrayBound::GetUpperBound
CComSafeArrayBound::GetLowerBound
CComSafeArrayBound::SetCount