|
-
Mar 3rd, 2004, 03:49 PM
#1
Thread Starter
Lively Member
array problem
I have flexgrid which I want to use its data for column 6 to generate chart using ChartDirector.API.
Snippet code below gives an error which is,
"error converting argument 1 to type class double array"
why is like that?
Pls help.
Thank u in advance.
VB Code:
ReDim data(MSFlexGrid7.Rows - 1)
ReDim labels(MSFlexGrid7.Rows - 1)
Dim i
For i = 0 To UBound(data)
data(i) = MSFlexGrid7.TextMatrix(i, 6)
labels(i) = MSFlexGrid7.TextMatrix(i, 0)
Next
Call layer.addDataSet(data, &HCF4040, "Jumlah Purata").setDataSymbol(cd.DiamondSymbol, 10)
Call c.xAxis().setLabels(labels)
Last edited by azrina; Mar 3rd, 2004 at 03:56 PM.
-
Mar 3rd, 2004, 05:45 PM
#2
What line gives the error?
-
Mar 3rd, 2004, 09:54 PM
#3
Thread Starter
Lively Member
VB Code:
ReDim data(MSFlexGrid7.Rows - 1)
ReDim labels(MSFlexGrid7.Rows - 1)
Dim i
For i = 0 To UBound(data)
data(i) = MSFlexGrid7.TextMatrix(i, 6)
labels(i) = MSFlexGrid7.TextMatrix(i, 0)
Next
'error at this line
Call layer.addDataSet(data, &HCF4040, "Jumlah Purata").setDataSymbol(cd.DiamondSymbol, 10)
Call c.xAxis().setLabels(labels)
-
Mar 3rd, 2004, 10:01 PM
#4
Thread Starter
Lively Member
someone told me that the error occured because the data(i) is not a number.
How come??
i enclose the screen shot of my Flexgrid.
pls help.
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
|