DELETEOBJECT action


Function
The action will delete an object from the system configuration.
Declaration
 DELETEOBJECT objId

Parameters
objIdent in Identifier of Int type.

Description
The action will delete the object from the system configuration, given by the unique identifier objId. The identifier is Int type. The action works asynchronously, so it is not possible to verify the action success and the action does not wait for the real execution of the deleting. Deleted object must not be used. 
Example
 BEGIN
  ALIAS _newGraph
  INT _newGraphHBJ
 
  COPYOBJECT D.graf, "D.novyGraf", _newGraph
 
  IF _newGraph\HBJ = 0 THEN
  ELSE
   OPEN _newGraph ON srvskolv.HIP ;opening graph
   DELAY 2[s] ;2 seconds delay of script execution
   CLOSE _newGraph ON srvskol1v.HIP ;closing graph
 
   _newGraphHBJ := _newGraph\HBJ
   DELETEOBJECT _newGraphHBJ ;deleting graph
  ENDIF
 END 


Related pages:

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .