In the docs and over the years, I’ve seen several examples with ABC SetFilter method calls such as:
BRWxx.SetFilter(‘My Filter String’,‘1-ID’)
BRWxx.SetFilter(‘My Filter String’,‘9-ID’)
Often forgotten with this code is the documented sorting of the ID priority parameter - “highest number first, lowest number last.” This says, confusingly enough in my mind, that the 2nd example above has priority.
In order to forever forget these documented details, every developer should define a set of their own ID priority equates that is most meaningful to them and include the set at the global level. Not only is it good to banish the single quotes but my head insists that #1 must be top priority. Here is the set I use:
Re-written, here is initial example:
BRWxx.SetFilter(‘My Filter String’,FILTER:1)
BRWxx.SetFilter(‘My Filter String’,FILTER:2)