I've a problem with the "nexttask" function.
The following code is cut out from the manual but it doesn't work:
In German, the runtime error box reports: Objekt unterstützt diese Eigenschaft oder Methode nicht.
Is this a bug?
I've tried it with the latest version of teeChart, but the error is
still the same...
Here is the sourcecode:
Code: Select all
Private Sub Form_Load()
fillChart
End Sub
Private Sub fillChart()
Dim tmp1, tmp2 As Integer
With TChart1.Series(0).asGantt
.AddGantt DateValue("1,1,1997"), DateValue("31,1,1997"),2,"Hello"
.AddGantt DateValue("1997,1,15"), DateValue("1997,2,15"),1,"Nice"
.AddGantt DateValue("1997, 2,1"),DateValue("1997,2,28"),0,"World"
.AddGantt DateValue("1997, 3, 1"), DateValue("1997, 3, 31"), 2,""
.AddGantt DateValue("1997, 4, 1"), DateValue("1997, 4, 30"), 0,""
.AddGantt DateValue("1997, 3, 15"), DateValue("1997, 4, 15"),1,""
'change connecting lines
.ConnectingPen.Width = 3
.ConnectingPen.Color = vbBlue
' increase bar heights
.Pointer.VerticalSize = 16
End With
With TChart1.Series(0).asGantt
tmp1=.AddGantt(DateValue("1,1,1997"),DateValue("31,1,1997"),2,"Development")
tmp2=.AddGantt(DateValue("1997,1,15"),DateValue("1997,2,15"),1,"Testing")
End With
TChart1.Series(0).asGantt.NextTask(tmp1) = tmp2 'Runtime Error 438
End Sub
Thanks for any help or idea
Manne