Hi,
I'm implementing NAS with the ability to read in and process txt files from a network folder. I read them in based on a command and date / time stamp included in the text file name to determine their content and sort order. The problem I'm having it is that I set a variable to the file table to locate the text file(s) and NAS waits for the files as they arrive from another system. This all works fine when I start the NAS service. but when the code loops back round in the time, it refuses to acknowledge any new text files added to the folder there after.
Is there a locked cache in NAS stopping it seeing new text files after the first code loop?
Some of the code goes like this...
CLEAR(RecFile);
RecFile.RESET;
RecFile.SETRANGE(Path, TxtQFMOut + RecDBSetup."Folder Path Name");
RecFile.SETRANGE("Is a file", TRUE);
RecFile.SETFILTER(Name, 'PRORDE*.txt');
IF RecFile.FIND('-') THEN BEGIN
REPEAT
......
Any ideas?
Many Thanks
Tim
0
Comments
RIS Plus, LLC
Bit of an own goal for the Navision NAS Service IMO
Many Thanks Again.
Tim
RIS Plus, LLC