lnI = 1 ON ERROR DO Onerror WITH ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( ) Do while .T. Do Case Case Mod(lnI,2) = 1 Copy File "C:\Package\Temp\Munir.DBF" To "H:\Package\Data\Munir.DBF" Case Mod(lnI,2) = 0 Copy File "C:\Package\Temp\Munir.DBF" To "H:\Package\Dt\Munir.DBF" &&Error since dt folder is not prsent Endcase lnI = lnI + 1 Enddo*--------------------
PARAMETER merror, mess, mess1, mprog, mlineno lnAnswer = Messagebox(merror,21,"Error) If lnAnswer = 4 && RETRY Retry EndifNow when the retry command is fired the control is passed to lnI = lnI + 1 command line but I want to continue copying the file in case Mod(lnI,2) = 0