2 Replies Latest reply: Nov 13, 2013 10:37 AM by mayilvahanan ramasamy RSS

    looping issue

      Hi Together,

       

      i try this script to check my Filesize > 10MB and also a check if there exits.

       

       

      REM SAPFILE-DETECTING###############################################;

       

      Let sapfile_Part_0_Exsists=if(FileSize('Z:\TOR_CONVERTED_PART_0.TXT') >10000000, 0,1);

      Let sapfile_Part_1_Exsists=if(FileSize('Z:\TOR_CONVERTED_PART_1.TXT') >10000000, 0,1);

      Let sapfile_Part_2_Exsists=if(FileSize('Z:\TOR_CONVERTED_PART_2.TXT') >10000000, 0,1);

      Let sapfile_Part_3_Exsists=if(FileSize('Z:\TOR_CONVERTED_PART_3.TXT') >10000000, 0,1);

       

      if $(sapfile_Part_0_Exsists) OR $(sapfile_Part_1_Exsists) OR  $(sapfile_Part_2_Exsists) OR  $(sapfile_Part_3_Exsists) then

       

      Load

      MsgBox('SizeCheckError or File Not Found') as Warning1;

       

      Else

      Load

      MsgBox('SizeCheckOk') as Warning1;

       

      End if;

       

       

       

      But during the debugging i get constantly the messagebox.  How can I avoid the (messageloop?) this ?

       

       

       

      Thank you very much.

       

      Best Regards,