ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Error converting argument 1 to type double
Posted by John Best on Feb-11-2016 14:03
Hi Peter,

I am plotting vertical line using addMark().
The value will be variable depending upon the user input.
The first parameter is array type double, and the value
stored in this array is also double.

Still, I am getting the error -

Run-time error '32768' Error converting argument 1 to type double

at

hLine(i) = uInput
....
....

Set yMark = c.yAxis().addMark(hLine, &H0&, infoStr) - Error Line

The "hLine" is a double array and the uInput is also double.



Regards
John

  Re: Error converting argument 1 to type double
Posted by Peter Kwan on Feb-11-2016 22:45
Hi John,

The mark is at a specific value, so the input should not be an array. It should be a single
value. For example:

Set yMark = c.yAxis().addMark(uInput, &H0&, infoStr)

Hope this can help.

Regards
Peter Kwan

  Re: Error converting argument 1 to type double
Posted by John Best on Feb-13-2016 11:45
Hi Peter,


Thanks...
Did the changes but now the line is not being displayed, when I put the variable
uInput.

But when I put a value directly, for ex

Set yMark = c.yAxis().addMark(100, &H0&, infoStr)

The line is displayed !!!

Regards
John