How to retrieve filtered file names in a folder?

cunnycunny Member Posts: 129
Hey Guys,

I would like to do something like this, in a folder there are a lot of txt files but what I need are the txt files starting their names with ABC(i.e ABC******.txt), and save all of them in a text array or something then I will do a loop to use them one by one.

Any idea how this could be done?

Regards,
cunny Lee
MCP - MBS Navision
jle@naviworld.com

Answers

  • kinekine Member Posts: 12,562
    Just search this forum, already answered. You need only to set correct filter on the virtual table File and you are done... :wink:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    search the forum for "is a file" and file table.
    Do you need also no array ....
    Do you make it right, it works too!
  • cunnycunny Member Posts: 129
    Thanks Guys,

    Indeed, it was bit tricky but it's done at the end by using the system file table.

    Thanks a lot and have a nice day :)

    Regards,
    cunny Lee
    MCP - MBS Navision
    jle@naviworld.com
Sign In or Register to comment.