
VB3 Graph Control for Line graph
I am trying to use the
graph control. I selected some records from a database using a data
control. I can assign one point to a line graph. The second point I
try to assign substitutes a zero for either my x or y value. I have
tried assigning graph points directly as well as from the database. I
have even tried using arrays. The code looks like this:
' Initialize to first record, first graph point
Data1.Recordset.MoveFirst
frmGraph.Graph1.ThisPoint = 1
'Get first data point
frmGraph.Graph1.XPosData = txtHLTValue.Text
frmGraph.Graph1.GraphData = txtBPRValue.Text
' Check next data point
frmGraph.Graph1.ThisPoint = 2
Data1.Recordset.MoveNext
frmGraph.Graph1.XPosData = txtHLTValue.Text
frmGraph.Graph1.GraphData = txtBPRValue.Text
frmGraph.Show
Any ideas why it resets values to zero even when I use an array?
I have searched the net for help and find nothing on this Graph control.
Thanks,
Gail Lehr