Knowledgebase:
SetChartScale
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 17 July 2017 10:58 AM

Syntax

Public Function SetChartScale(chart_id As Long,win As Long, maxVal As Double, minVal As Double) As Boolean

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 result

result = 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


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions