Share via


QueryBuildDataSource.clearRanges Method

Deletes all ranges that are associated with the data source.

Syntax

public void clearRanges()

Run On

Called

Examples

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;

See Also

Reference

QueryBuildDataSource Class