Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

CLOSE action


Function
Closing of a graph, graphic picture or composition.
Declaration


Blok kódu
languageesl
themeConfluence
 CLOSE grObjIdent [INSTANCE instanceExprInt]
 
or
 


Blok kódu
languageesl
themeConfluence
CLOSE grObjIdent   ON procIdent [INSTANCE instanceExprInt]
 
or
 


Blok kódu
languageesl
themeConfluence
CLOSE grObjIdent  ON ALL [INSTANCE instanceExprInt]
 
or
 


Blok kódu
languageesl
themeConfluence
CLOSE DIRECT
Parameters


grObjIdentinReference to an object of Graph, Picture or Composition types.
procIdentinIdentifier of a Process type object (Human Interface).
instanceExprIntinExpression of Int type, which specifies the object instance number.
Description
The action will close given graphic object (optionally also the given instance) on specified console (if not declared, then on SELF.HIP) or on all running consoles.

Action with the DIRECT clause is permitted only for:WARNING:
      next actions may not be executed - so it is recommended to put the
CLOSE DIRECT
    action at the end of RPC procedure).
Examples
Closing a graph in the process SELF.HIP
 


Blok kódu
languageesl
themeRDark
 BEGIN
  ALIAS _newGraph
  INT _newGraphHBJ
  SET _newGraph AS D.graf
  IF _newGraph\HBJ = 0 THEN
  ELSE
   OPEN _newGraph ; opening a graph in SELF.HIP process
   DELAY 2[s]
   CLOSE _newGraph ; closing a graph in SELF.HIP process
  ENDIF 
 END 
 
Closing an instance of graph in all HIP processes
 


Blok kódu
languageesl
themeRDark
 BEGIN
  ALIAS _newGraph
  INT _newGraphHBJ
  SET _newGraph AS D.graf
 
  IF _newGraph\HBJ = 0 THEN
  ELSE
    OPEN _newGraph ON ALL INSTANCE 0 ; opening the first instance
   OPEN _newGraph ON ALL INSTANCE 1 ; opening the second instance
    DELAY 2[s]
    CLOSE _newGraph ON ALL INSTANCE 1 ; closing the second instance
  ENDIF 
 END 
 
Closing the particular instance of graph in HIP process
 


Blok kódu
languageesl
themeRDark
 BEGIN
  ALIAS _newGraph
  INT _newGraphHBJ
  SET _newGraph AS D.graf

  IF _newGraph\HBJ = 0 THEN
  ELSE
   OPEN _newGraph ON srvskol1v.HIP INSTANCE 0 ; opening the first instance
   OPEN _newGraph ON srvskol1v.HIP INSTANCE 1 ; opening the second instance
   DELAY 2[s]
   CLOSE _newGraph ON srvskol1v.HIP INSTANCE 1 ; closing the second instance
  ENDIF 
 END 

Info
titleRelated pages:

Script actions