TeeChart demo runtime error

TeeChart for ActiveX, COM and ASP
Post Reply
David
Advanced
Posts: 203
Joined: Tue Nov 08, 2005 5:00 am

TeeChart demo runtime error

Post by David » Mon Nov 28, 2005 9:21 am

Hi, there,
I was trying the demos with Teechart 7 in the "all features". The example "Opaque Zones" under Axes would pop up a dialog saying that "runtime error '91': object variable or With block variable not set". Any idea why? Thank you!

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Nov 28, 2005 11:25 am

Hi David,

yes, you're correct, it's a bug which has been fixed for the next maintenance release v7.06 which will be out on this week.
The problem was in the index, in meantime to solve it you can just modify the following line :
tmp = tmp * (TChart1.Axis.Custom(tmpAxis).Maximum - TChart1.Axis.Custom(tmpAxis).Minimum)
by this one :
tmp = tmp * (TChart1.Axis.Custom(tmpAxis-1).Maximum - TChart1.Axis.Custom(tmpAxis-1).Minimum)

But remember to update the source again when the v7.06 will be installed.

Post Reply