removeText()

ICE Data Services -

removeText()
Previous  Top  Next


removeText( tagID )

Remove a specific text object originally drawn by drawText(), drawTextRelative(), drawTextAbsolute() or drawTextPixel(). The object is identified by its tagID.

Parameters

tagID
the unique ID of the text object to remove


Usage

function main() {

   ...
   ...

   
if ( getBarState() == BARSTATE_NEWBAR ) {

      
//remove a specific text object from the chart. We we originally
      
//drew this text object, we gave it a tagID of 201 so that we 
      
//could identify it later.
      removeText( 
201 );


   }

}