Creating a Poll

KromozoneKromozone Member Posts: 47
Hello,

I have to create a "File-Polling". This Poll should search some Files with placeholders (e.g. navXXXX.txt) in a specific Path.

I've no idea how to create this in Navision. How can I get help? :D

Thanks in advance!
Andy

Comments

  • kinekine Member Posts: 12,562
    FileList.SETFILTER(Path,'c:\windows');
    FileList.SETFILTER(Name,'*.txt');
    FileList.SETRANGE("Is a file",TRUE);
    
    IF FileList.FIND('-') THEN
    repeat
    
      //Your code here
    
    until FileList.NEXT=0
    

    FileList is record 2000000022 - File
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • KromozoneKromozone Member Posts: 47
    Just like that? Wow :shock: :D Thank you for the quick solution!

    Everyday is fun to develop with Navision :D
Sign In or Register to comment.