|
-
Apr 25th, 2000, 09:11 PM
#4
Thread Starter
Member
Private Sub cmdDraw_Click()
OK so I tried changing the row to 1, the Column to 1, and both the column and the row to 1. These alkl produced a series of lines. The RandomFill property was already set to false, and I changed the .Data property to the .ChartData property (which was probably the reason for the mismatch error). Do you think it could be the structure of my array? The array I'm using for testing is (1,2,3,4,5,6;2,4,6,8,10,12). Do you know of any good references for MSChart? I've looked at the MSDN Library examples, but they are somewhat thin. I also have the EXPERT GUIDE TO VB6 which is not very helpful either.
Here is the updated code:
Dim arrData(2, 6)
Dim i, j, k As Integer
For i = 1 To 6
arrData(1, i) = txtX(i - 1).Text
arrData(2, i) = txtY(i - 1).Text
Next i
With LinGraph
.Repaint = False
.chartType = VtChChartType2dLine
.ColumnCount = 6
.RowCount = 1
For j = 1 To 6
.ChartData = arrData
Next j
.ColumnLabel = txtLinTrack.Text
.RowLabel = lblLinTag.Caption
.Repaint = True
End With
End Sub
LauRa
"Work like you don't need the money...Love like you've never been hurt...Dance like nobody is watching..."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|