Search file

ATAT Member Posts: 20
I have to import picture files where the file name is like:
Item Number-some text.bmp
I tried the Virtual File Table but i don´t know how to filter like:
Item.No*.bmp.

Is it there a possibility to search the file in the subdirectorys too (recusive)?

Answers

  • ara3nara3n Member Posts: 9,256
    Directory is of type record , subtype file
    
    if Item.findset(true,false) then repeat
      Directory.setrange(path,'C:\temp\');
      Directory.setrange("Is a file",true);
      Directory.setfilter(Name,Item."No." +'*.bmp');
    
      if Directory.find('-') then repeat
        message(Directory.Name);
      until Directory.next = 0
    until item.next = 0
    
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.