HorScaleEnd

<< Click to Display Table of Contents >>

 

HorScaleEnd

Number Determines the final value applied on a grid's main horizontal scale. This value can either be numerical for XY E3Charts or data for E3Charts with fixed-time scales. For real-time E3Charts this property is not applied, which uses the TimeSpan property instead. The next script contains an example of using this property.

Sub ComboBox1_Change()
  ' Defines which query to display
  current_query_index = ListIndex
  Set E3Chart1 = Screen.Item("E3Chart1")
  i = 0
  For Each query In E3Chart1.Queries
    If i = current_query_index Then
      ' Retrieves everything
      query.FieldFilter(0) = "" 'Retrieves all
      Set current_query = query
    Else
      ' Retrieves everything
      ' to prevent slowing down the operation
      query.FieldFilter(0) = "<0" 'Do not retrieve
      ' anything, to prevent slowness
    End If
    i = i + 1
  Next
  ' Only displays pens using the current query
  For Each pen In E3Chart1.Pens
    pen.Visible = (pen.QueryName = current_query.Name)
  Next
  ' Updates all queries
  E3Chart1.Queries.UpdateData()
  Screen.Item("E3Chart1").HorScaleBegin = Now - 0.001
  Screen.Item("E3Chart1").HorScaleEnd = Now
End Sub

Was this page useful?