I'd like to propose a function i use pretty much in all interfaces with listboxes that need to be updated.
The purpose of this function is to know what have been added and deleted in an array.
Description: This function will parse reference and array to return added and deleted elements. The puspose of this function is to know what have been added and deleted in an array.
Syntax: [reference, array] call BIS_fnc_getDeletedAndAdded
Parameters: reference: Array - reference array
array: Array - updated array
Return Value: Array - in following format: [[deleted elements indexes], [added elements indexes]]