I am attempting to change the time span of a TrendX graphic display with VBA code - unsucessfully. I'm using FactoryTalk View Site Edition 8.00.00 on a Windows 7 machine. Although templates load correctly, the TrendX.XAxis.TimeSpan code produces a "type mismatch" error in both the routines below. Am I going about this entirely wrong?
Private Sub Display_AnimationStart()
TrendX.LoadTemplate "t2"
TrendX.XAxis.TimeSpan = 86400
End Sub
Private Sub btn_5_min_Released()
Dim x As XAxis
Set x = TrendX.XAxis
but_5_min.TimeSpan = 300
End Sub
Thanks for any insight.
Private Sub Display_AnimationStart()
TrendX.LoadTemplate "t2"
TrendX.XAxis.TimeSpan = 86400
End Sub
Private Sub btn_5_min_Released()
Dim x As XAxis
Set x = TrendX.XAxis
but_5_min.TimeSpan = 300
End Sub
Thanks for any insight.
