The CreateTerritoriesFromGrids method creates a territory map with the Automatically Map Territories on M x N Grids option.
Syntax
object.CreateTerritoriesFromGrids
object.CreateTerritoriesFromGrids( nHorizontalTerritories, nVerticalTerritories )
Parameter |
Type |
Description |
nHorizontalTerritories |
Integer |
required; number of horizontal territories |
nVerticalTerritories |
Integer |
required; number of vertical territories |
Example
'CreateTerritoriesFromGrid
'Create territories by using a 1 row x 4 column grid over the boundaries
TerritoryMap.CreateTerritoriesFromGrids(nHorizontalTerritories:=4, nVerticalTerritories:=1)
Used by: TerritoryMap object