QueryBuildDataSource.clearRanges Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes all ranges that are associated with the data source.
public:
virtual void clearRanges();
public virtual void clearRanges ();
abstract member clearRanges : unit -> unit
override this.clearRanges : unit -> unit
Public Overridable Sub clearRanges ()
Remarks
The following example adds ranges and then removes them from a data source.
Query Q = new Query();
QueryBuildDataSource ds = q.addDataSource(TableNum(CustTable));
QueryBuildRange r = ds.addRange(FieldNum(CustTable, recId));
print ds.rangeCount();
ds.clearRanges();
print ds.rangeCount();
pause;