Page 1 of 1

TeeChart demo runtime error

Posted: Mon Nov 28, 2005 9:21 am
by 9529132
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!

Posted: Mon Nov 28, 2005 11:25 am
by Pep
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.