TabulatedDistance2

 

The TabulatedDistance2 method creates a table of distances, similar to the tables found in atlases. This method is the same as the TabulatedDistance method, except it takes the pointer to the array. VB users may want to call this method instead of TabulatedDistance. Note: Golden Software does not officially support VB.

 

Syntax

object.TabulatedDistance2( ppHorizontalPIDs, pVerticalPIDs, SearchPIDInAllLayers )

 

Parameter

Type

Description

ppHorizontalPIDs

Array of Variants

required; locations for columns

pVerticalPIDs

Array of Variants

required; locations for rows

SearchPIDInAllLayers

Boolean

optional; true to include primary IDs from all layers

 

Remarks

VB users can use ReDim to set the array size to the used size if necessary. See Coordinate Arrays for more information about creating arrays in MapViewer.

 

Example

    'TabulatedDistance2

    'Create a base map layer of California and assign it to the variable "BaseMap"

    Set BaseMap = Plot.CreateBaseMap(FileName:=mvApp.ModuleFolder + "\Samples\CA2010.gsb")

 

    'Create an array of four PIDs for the columns of the table

    Dim colArray(3) As Variant

    colArray(0) = "06001"

    colArray(1) = "06003"

    colArray(2) = "06005"

    colArray(3) = "06007"

 

    'Create an array of two PIDs for the rows of the table

    Dim rowArray(1) As Variant

    rowArray(0) = "06113"

    rowArray(1) = "06115"

 

    'Create a table of distances using the rows and columns specified above

    Plot.TabulatedDistance2(pHorizontalPIDs:=colArray(), pVerticalPIDs:=rowArray(), SearchPIDInAllLayers:=True)

 

Used by: PlotDocument object