Record (Subtype File) is not beeing updated


I have declared a variable FileArchive Datatype = Record and Subtype = File.

I want to move files from a specific folder, which workes fine. But when I run the function the second time, and loop through the FileArchive record to find files, the record has not been updated to reflect that the fiels has been moved. This results in an error because it cant copy a file that dosnt exist.

Any ideas how to refresh/update the content of files on the operating system to reflect this virtual table?

Thanks in advance.


Can you post the code?