Share via


HighValue property

Returns the maximum value for a DataRange object. DataRanges collections with a DataRangeType property of geoRangeTypeContinuous, geoRangeTypeContinuousLog, or geoRangeTypeUniqueValues do not have a high value. Read-only Variant.

Applies to

Objects:  DataRange

Syntax

object.HighValue

Parameters

Part Description
object Required. An expression that returns a DataRange object.

Example

    Sub GetInfoAboutDataMap()
    Dim objApp As New mappoint.Application
    Dim objDataMap As mappoint.DataMap
    Dim objDataSet As mappoint.DataSet
    Dim lngDataRangeType As Long

    'Set up application and objects to use     objApp.Visible = True     objApp.UserControl = True
    'Let user create a data map     Set objDataMap = objApp.ActiveMap.DataSets.ShowDataMappingWizard()     lngDataRangeType = objDataMap.DataRanges.DataRangeType     If lngDataRangeType = geoRangeTypeContinuous _       Or lngDataRangeType = geoRangeTypeContinuousLog _       Or lngDataRangeType = geoRangeTypeUniqueValues Then       MsgBox "The range type must not be continuous or unique " & _         "values for this sample."       Exit Sub     End If
    'Get information about the data map     MsgBox "The first range high value is: " & _       objDataMap.DataRanges(1).HighValue   End Sub