This function removes any record from any stack belonging to any IMOD.
record = YANK(recnum,[stack],[owner],[cntl])
Parameters
Returned record or error text.
Record number to be removed from the stack.
Number of the stack to be referenced.
Default: If a local stack is referenced, the current stack (as set by the SWAPSTAK() function). Otherwise, the owning IMOD task sets the value using the PUBSTACK(DEFAULT) function.
IMOD ID of the owner of the stack (for external reference). This value can be obtained from the variable imod_id in the owning IMOD task. It is also the value that the SPAWN() function returns.
Default: Current IMOD task.
Name of a variable to receive the control information that is stored with the record. The default is not to retrieve control information.
ARG n INVALID
STACK NOT SPECIFIED AND NO DEFAULT
RECORD NOT FOUND
SPECIFIED IMOD NOT FOUND
STACK WRITE FAILED
REQUESTED STACK DOES NOT EXIST
SPECIFIED IMOD/STACK NOT AUTHORIZED
Example
rec = yank(2) /* Record number 2 is removed from the current stack */ rec = yank(2,5) /* Record number 2 is removed from local stack 5 */ rec = yank(2,,453,'data') /* Record 2 is removed from IMOD 453's information is stored in the variable data. */
YANK() can specify a stack external to an IMOD only when the target stack has been declared public for reading and writing.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|