Syntax
Public Function ObjectType(chart_Id As Long, name As String) As Integer
Description
This function is used to return one of the ENUM_OBJECT value as the object type value by a given object name.
Parameters
Key | Description |
chart_Id | Chart identifier. 0 mean the current chart, the value of type Long. |
name | Object name that wants to know the type value for it, the value of type String. |
Return value
Return one of theENUM_OBJECTvalue. To get the detailed error Information when the object type is -1, call GetLastError() function.
Sample
Public Sub main () AlertMessage ObjectType (0, Object Name) End sub
See Also