RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ESafeArrayBoundsError Class

ESafeArrayBoundsError is the exception class for errors that occur because a variant array index is out of bounds.

Pascal
ESafeArrayBoundsError = class(ESafeArrayError);
C++
class ESafeArrayBoundsError : public ESafeArrayError;

ESafeArrayBoundsError is raised when an operation on a variant array fails because an index value is out of bounds.  

To raise this exception programmatically, call SafeArrayError with the argument VAR_BADINDEX

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!