GRAPH.FindElement

Previous  Next

 

nStatus = GRAPH.FindElement( BYVAL nControl AS INTEGER,

                             BYVAL name     AS STRING ) AS INTEGER

 


 

Finds the element with specified name and returns the element number.  If the element can't be found, then the function returns 0.

 

Example:

 

nElement = GRAPH.AddElement( nControl, "Marker 1", data_x, data_y )

GRAPH.Element( nControl, nElement, 1, NG_Solid, NG_Asterisk, RGB( 200, 128, 0 ) )

 

' Do some stuff....

 

' Hide the element named "Marker 1"

GRAPH.Element( nControl, GRAPH.FindElement( "Marker 1" ), 0 )