Cannot calc Y position and marks positions
Posted: Fri Nov 19, 2004 9:37 am
Having a bit of a weird one where the bar marks are not correctly positioned above bars i.e. they are overlapping.
so.. i'm trying to run this bit of code to move them:
BarTop = .Series(1).CalcYPos(i)
BarBottom = .Series(1).CalcYPosValue(i)
ypos = (BarTop + BarBottom) / 2
.Series(1).Marks.Positions.Position(i).Custom = True
.Series(1).Marks.Positions.Position(i).LeftTop.Y = ypos
i'm looping through a recordset, incrementing 'i' through each loop.
BarTop and BarBottom = "0" and the code fails on .Series(1).Marks.Positions.Position(i)....
i've replaced (i) with 1,2 etc and I still get the same.
Is it something simple that i've done wrong?
Thanks
so.. i'm trying to run this bit of code to move them:
BarTop = .Series(1).CalcYPos(i)
BarBottom = .Series(1).CalcYPosValue(i)
ypos = (BarTop + BarBottom) / 2
.Series(1).Marks.Positions.Position(i).Custom = True
.Series(1).Marks.Positions.Position(i).LeftTop.Y = ypos
i'm looping through a recordset, incrementing 'i' through each loop.
BarTop and BarBottom = "0" and the code fails on .Series(1).Marks.Positions.Position(i)....
i've replaced (i) with 1,2 etc and I still get the same.
Is it something simple that i've done wrong?
Thanks