Hello everyone!
My issue regards the generation of a progressive number (pn) for a filename, which is produced thanks to a mask which I'm working on; the mask output is a filename for the new files to be saved.
The pn should be generated through a button or something similar that reads the files in a given directory.
The pn should therefore be produced by taking into account the other fields of the filename, and add 1 when finds the same fields. Follows an example:
The filename is COM-CE7001AR0-N049-DAMMER-XXXX-XXXXXX-CAROPRESEX-170130-XXXX-XXXXXX-001-PASSIR-ACCE.
Let's hypothesize that all fields are the same for the new filename to be produced except for the pn that should be 002 (pn is the third field starting from right, 001, and exists also in the second field starting from left, CE7001AR0). By clicking on the button is should be generated therefore 002.
Any idea?
Thanks in advance
Beppe