GET NEW OP LIST

From Macros Wiki
Jump to: navigation, search

Up

Command

GET_NEW_OP_LIST [<same>, <new>, <deleted>, <from>, <to>]


Compare the list of operations with the list saved by the GET_OLD_OP_LIST command and set the following list of variables.

NUMBER_OF_SAME_OPS
NUMBER_OF_NEW_OPS
NUMBER_OF_DELETED_OPS
NUMBER_OF_MOVED_OPS

FIRST_SAME_OP_NUMBER
NEXT_SAME_OP_NUMBER
LAST_SAME_OP_NUMBER

FIRST_NEW_OP_NUMBER
NEXT_NEW_OP_NUMBER
LAST_NEW_OP_NUMBER

FIRST_DELETED_OP_NUMBER
NEXT_DELETED_OP_NUMBER
LAST_DELETED_OP_NUMBER

FIRST_MOVED_OP_FROM_NUMBER
NEXT_MOVED_OP_FROM_NUMBER
LAST_MOVED_OP_FROM_NUMBER

FIRST_MOVED_OP_TO_NUMBER
NEXT_MOVED_OP_TO_NUMBER
LAST_MOVED_OP_TO_NUMBER

Parameters

<same>
Name of array variable to be set to the list of ops that have not moved.
<new>
Name of array variable to be set to the list of ops that are new
<deleted>
Name of array variable to be set to the list of ops that have been deleted.
<from>
Name of array variable to be set to the list of ops that have moved (op numbers in old list).
<from>
Name of array variable to be set to the list of ops that have moved (op numbers in new list).

Example

LOCAL OpsSame(1000), OpsNew(1000), OpsDeleted(1000), OpsMoveFrom(1000), OpsMovedTo(1000)

GET_OLD_OP_LIST

(make your changes to the operation list)

GET_NEW_OP_LIST OpsSame, OpsNew, OpsDeleted, OpsMoveFrom, OpsMovedTo


You can now used the variables NUMBER_OF_SAME_OPS, NUMBER_OF_NEW_OPS, NUMBER_OF_DELETED_OPS and NUMBER_OF_MOVED_OPS
to determine how the operation list has changed. The array variables used with the GET_NEW_OP_LIST command will contain lists of these operations.