Import data of diferent files

RokeRoke Member Posts: 7
edited 2008-04-14 in Navision Attain
Hi, I want to import data of diferent files. The files alway have the same name but can be a lot of files. For example: File0001, File0002, File0003....

So i wan to know how i can know if there is files in the path to import and how many are.

can help me someone ? please.

Comments

  • RokeRoke Member Posts: 7
    I respond my question :)

    clear(Fichero);
    Fichero.setrange(Path, 'C:\WINDOWS\system32\drivers\etc');
    Fichero.setrange("Is a file", true);
    if fichero.find('-') then
    repeat
    message(Fichero.Name);
    until fichero.next = 0;


    Note:

    Fichero is a record of subtype File

    Thanks all :P
Sign In or Register to comment.