MSChart1.ColumnLabel =实用 MSChart1.Column = 3 MSChart1.ColumnLabel =视觉辅助工具 MSChart1 .Column = 4 MSChart1.ColumnLabel =手 MSChart1.Column = 5 MSChart1.ColumnLabel =Rec MSChart1.ChartData = c hartvalue 当我运行上面的代码时显示错误如下: 错误的函数参数。 以上错误显示在MSChart1.ChartData = chartvalue。 请帮助我。问题是什么我的上述代码。 问候, Narasiman P. 解决方案 你需要一个多维数组。点击这里: http:// msdn.microsoft.com/en-us/library/2c610fkb%28v=vs.71%29.aspx [ ^ ] 祝你好运! Note it is windows application (Visual Basic 6.0) My vb code as follows Dim chartvalue(1 To 5) chartvalue(1) = CrsObj chartvalue(2) = Pra chartvalue(3) = Vis chartvalue(4) = Hand chartvalue(5) = rec MSChart1.ColumnCount = 5 MSChart1.Column = 1 MSChart1.ColumnLabel = "Objective" MSChart1.Column = 2 MSChart1.ColumnLabel = "Practicals" MSChart1.Column = 3 MSChart1.ColumnLabel = "Visual Aids" MSChart1.Column = 4 MSChart1.ColumnLabel = "Hand" MSChart1.Column = 5 MSChart1.ColumnLabel = "Rec" MSChart1.ChartData = chartvaluewhen i run the above code shows error as follows: Bad function argument.The above error shows in MSChart1.ChartData = chartvalue.please help me.what is the problem in my above code.Regards,Narasiman P. 解决方案 You need a multi dimensioned array. Check out here:http://msdn.microsoft.com/en-us/library/2c610fkb%28v=vs.71%29.aspx[^]Good luck! 这篇关于当我运行显示错误坏函数参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-18 10:43