As I mentioned before, Uniface8+ has a function to give us a list of files. So what to in Uniface7 to prepare for this change?
This way we have a chance to use “pre-delivered” uniface functionality.
We call a GLOBAL PROC in our coding like the one defined here:
string p_file_mask : in
string p_ListOfFiles : out
…… code depending on the uniface version
end ; get_FilesInDir
when we go to higher uniface versions we have to migrate this Proc only.
From 8+ onwards, we can even write our own functions using the RETURNS statement.