CheckDataSource + Oracle
-
- Newbie
- Posts: 1
- Joined: Wed Jul 11, 2001 4:00 am
CheckDataSource + Oracle
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
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
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