Dew MtxVec NET
TMtxVec.DisableSubrange Method
Summary
Prevents calls to SetSubRange.

Class
TMtxVec

Declaration
Procedure DisableSubrange;

Description
Prevents calls to SetSubRange method. This can be usefull guard when an object is already working on a subrange and the user would like to further subrange an already subranged object.
 See Also 
DisableSubrange 
EnableSubrange 

Example 1

var a,b: TVec; begin CreateIt(a,b,c,d); try a.SetIt(false, [1,2,3,4,5,6,7,8,9]); a.SetSubRange(0,2); //a = [1,2] a.DisableSubrange; a.SetSubRange(2,2); //exception raised here b.SetSubRange(a,2,2); //but this will work a.SetFullRange; //b is not changed, it still points to [4,5] finally FreeIt(a,b); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com