Navision developper

2»

Comments

  • houssayenhoussayen Member Posts: 45
    THANKS, it works, but when my files are moved, and in the next repeat loop processing
    navision displays a exeption: the file "file name" already exists..
    is what I can add a control on the existence of the file before the transfer??
    is what I can add a control to verify the existence of the file, if there is no file transfer, the program stops, it's possible??
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Why dont you read some basic navision technical documents..
    what project you have done so far and what you have learnt?
    this forum is not a training institute or we are not partners to you..
  • SaalekSaalek Member Posts: 181
    Hi

    You can use EXIST function to know if a file exists.

    Maybe you can change a little the code changing destiny forlder file name.
    TFile.RESET;
    TFile.SETRANGE(Path,'c:\Origen');
    TFile.SETRANGE("Is a file",TRUE);
    IF TFile.FIND('-') THEN
      REPEAT
        DestinyPath:='c:\Destiny\'+DELCHR(Format(TODAY),'=','/')+'-'+DELCHR(Format(TIME),'=',':')+'-'+TFile.Name;
        COPY(TFile.Path+'\'+TFile.Name,DestinyPath);
        ERASE(TFile.Path+'\'+TFile.Name);
      UNTIL TFile.NEXT=0;
    

    Bye
  • houssayenhoussayen Member Posts: 45
    @ saalek,
    thanks for your help..

    @ Mr Mohana

    I read a lot of paper on navision, but there are a few tips on the files I connet not, in addition, the forum has emissions improve the level of each user and to ask questions, thank you for your help, but if you're not a interrese help others, you're free
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    houssayen wrote:
    if you're not a interrese help others, you're free
    If I am not interested i would not have given any reply..
    If you start asking all questions, you dont get chance to explore navision and learn..
  • houssayenhoussayen Member Posts: 45
    worry, I will not take information without assimilating them, and understand what it sagit, thank you.
  • houssayenhoussayen Member Posts: 45
    hi,
    I have a small question about navision, I have a codeunit that can detect the presence on a text file in a directory, if I add a new file, it does not detect except that if I restart Navision.
    my question is: I can improve this codeunit so that it can detect adding the new later file without reboot navision?
    thanks..
Sign In or Register to comment.