RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::ThrowIfOutOfRange Method

Throws exception if index is out of range in System::UnicodeString.

Pascal
procedure ThrowIfOutOfRange(idx: Integer); cdecl;
C++
__cdecl void ThrowIfOutOfRange(int idx) const;

System::UnicodeString::ThrowIfOutOfRange throws an ERangeError exception if the given 1-based character index is out of range for a System::UnicodeString instance. Specifically, it throws an exception if the index is less than 1 or greater than the character length of the string. 

 

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