I have a folder that has pictures for specific “policies.” Each policy may contain any number of pictures. The folder could also contain any number of policies.
VAH007157100-pic1.jpg
VAH007157100-pic2.jpg
VAH007157100-pic3.jpg
WAZ009999200-pic1.jpg
WAZ009999200-pic2.jpg
WAZ009999200-pic3.jpg
WAZ009999200-pic4.jpg
…
Foreach policy GROUP, I want to run a method (CreateTiffFile()) that takes in an ARRAY (of files in this group) and performs certain actions.
In the example above, the method would run twice (because there are 2 distinct policies). I would also have 2 distinct arrays. One array containing VAH007157100 pictures (3 in this case) and another array (WAZ009999200) containing 4 pictures.
How would I run this method on each group array?
let me know if i wasn’t clear enough. remember, the number of policies and the number of pictures per policy varies so i need to take that into account.
For a better vision (based on data above):
CreateTiffFile(array containing VAH007157100 pics);
CreateTiffFile(array containing WAZ009999200 pics);
…
and so on.
You can do something like: