CheckDataSource + Oracle

TeeChart for ActiveX, COM and ASP
Post Reply
Newbie
Newbie
Posts: 1
Joined: Wed Jul 11, 2001 4:00 am

CheckDataSource + Oracle

Post by » Wed Dec 03, 2003 9:34 am

: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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Dec 04, 2003 10:20 am

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

Post Reply