GRAPH.Type |
nType = GRAPH.Type( BYVAL nControl AS INTEGER ) AS INTEGER
Returns the type of the graph. This can be wither NG_XT or NG_XY. If no graph has been created, the function returns -1.
Example:
IF GRAPH.New( nControl, NG_XT, "Graph" ) <> 0 THEN ' Display Frames on Horizontal time axis IF GRAPH.Type( nControl ) = NG_XT THEN ' Enable cursor GRAPH.Cursor( nControl, TRUE ) ENDIF ENDIF
|