Partilhar via


QueryBuildDataSource.clearRanges Method

Definition

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;

Applies to