Syntax
Public Function SetChartScale(chart_id As Long,win As Long, maxVal As Double, minVal As Double) As Boolean
Description
This function is used to change where the scale begins and ends based on the max and min values. The max value must be greater than min value.
Parameters
Key | Description |
chart_ID | Chart identifier, 0 is the current chart ,value of type Long |
Win | Panel Number ,value of type Long. |
maxVal | Max Scale value , value of type Double. |
minVal | Min Scale value,value of type Double. |
Return value
Returns true If the function succeeds, ,otherwise it will be false. To get the detailed error information, call GetLastError().
Sample
Public Sub main()Dim resultresult = SetChartScale(0,0,500,200)If not Cbool(result) Then AlertMessage "Tthe returned value is false .To get the detailed error information, call GetLastError()."End If End Sub
See Also