GET NEW OP LIST: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 29: Line 29:
:LAST_MOVED_OP_TO_NUMBER
:LAST_MOVED_OP_TO_NUMBER


|param1=<same>|param1_desc={{parameter_array_name}} the list of ops that have not moved.
|param1=<same>|param1_desc={{parameter_array_any_name}} the list of ops that have not moved.
|param2=<new>|param2_desc={{parameter_variable_array_name}} the list of ops that are new
|param2=<new>|param2_desc={{parameter_array_any_name}} the list of ops that are new
|param3=<deleted>|param3_desc={{parameter_variable_array_name}} the list of ops that have been deleted.
|param3=<deleted>|param3_desc={{parameter_array_any_name}} the list of ops that have been deleted.
|param4=<from>|param4_desc={{parameter_variable_array_name}} the list of ops that have moved (op numbers in old list).
|param4=<from>|param4_desc={{parameter_array_any_name}} the list of ops that have moved (op numbers in old list).
|param5=<from>|param5_desc={{parameter_variable_array_name}} the list of ops that have moved (op numbers in new list).
|param5=<from>|param5_desc={{parameter_array_any_name}} the list of ops that have moved (op numbers in new list).
}}
}}
===Example===
===Example===
:GET_NEW_OP_LIST
:LOCAL OpsSame(1000), OpsNew(1000), OpsDeleted(1000), OpsMoveFrom(1000), OpsMovedTo(1000)
 
:<br>
 
:GET_OLD_OP_LIST
:<br>
:(make your changes to the operation list)
:<br>
:GET_NEW_OP_LIST OpsSame, OpsNew, OpsDeleted, OpsMoveFrom, OpsMovedTo
<br>
:You can now used the variables NUMBER_OF_SAME_OPS, NUMBER_OF_NEW_OPS, NUMBER_OF_DELETED_OPS and NUMBER_OF_MOVED_OPS<br>
: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.


[[Category:List]]
[[Category:List]]

Latest revision as of 18:39, 13 January 2011

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.