Page 1 of 1

CheckDataSource + Oracle

Posted: Wed Dec 03, 2003 9:34 am
by 6921524
:x
Hi folks,

I got a problem with V5 (0.6.0) that didn't exist in V4.
This did work

Init
...
With .Series(1)
.Name = "Test"
.DataSource = "DSN=Ora;UID=usr;PWD=***;SERVER=srv;" & _
"SQL=SELECT dt, actval val FROM tab " & _
"WHERE dt > SYSDATE-1/2 AND id = 1"
With .XValues
.ValueSource = "dt"
.DateTime = True
End With
.YValues.ValueSource = "val"
End With
...

OnTimer
...
If .SeriesCount > 1 Then
For i = 0 To .SeriesCount - 1
.Series(i).CheckDataSource
.Series(i).RefreshSeries ' V4 didn't need this
Next i
End If

.RefreshData ' V4 didn't need this
.Repaint ' V4 didn't need this either
...

In V4 CheckDataSource would trigger teeChart to redraw the series every
time the OnTimer event occures. In V5 it doesn't.

What's wrong? Would V6/7 do this better (or was this a wanted improvement for V4 -> V5 ;-)

Thanks

AndyR

Posted: Thu Dec 04, 2003 10:20 am
by Pep
Hi Andy,

as Christopher told you on newsgroups :

Try:

TChart1.Series(1).DataSource = -1

And then reset the datasource and run CheckDataSource().

Josep Lluis Jorge
http://support.steema.com