Update your file record.

eromeineromein Member Posts: 589
edited 2003-07-18 in NAV Tips & Tricks
Hi,

To update your FILE record in Navision, set a different filter and find something, anything. After that you can reset (set again) your filters and your record is updated.

Sample
files.setrange(path, 'c:\foo\bar\');
repeat
  if files.find('-') then
    movefile;  
until foo = bar;

The find will ALWAYS find the same file. Change your code to:

Sample
repeat
  files.setrane(path, 'c:\');
  files.find('-');
  files.setrange(path, 'c:\foo\bar\');
  if files.find('-') then
    movefile;  
until foo = bar;

And you're on!
"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."
Sign In or Register to comment.