Page 1 of 1

point figure sample code with vb6

Posted: Sat May 02, 2009 8:20 am
by 15053038
pls i search in the tutorials but i need criticatly the steps sample
after opening data base

to draw point o Or x
using vb6

some thing i'cant under stand lik
AddOHLC
GetInversionColumn

can u provide me sample code
thanks 4 ever and never

Posted: Mon May 04, 2009 7:19 am
by narcis
Hello,

Yes, you can populate PointFigure series like this:

Code: Select all

Private Sub Form_Load()
    TChart1.AddSeries scPointFigure
    
    For i = 0 To 10
        TChart1.Series(0).asPointFigure.AddOHLC Now + i, 10, 40, 5, 25
    Next
End Sub
AddOHLC method uses a DateTime value for x values and then open, high, low and close values for the PointFigure series.

GetInversionColumn returns the column index where the index'th parameter point is located.

Point and Figure series draw columns where each step in the column corresponds to a point in the underlying datasource series.