     Windows-  
  .
--------------------------------------------------------------------------------

:

  Init PROCEDURE(<BYTE _IntWin>,<STRING _Title>,<BYTE _Image>, |
                 <LONG _ProgressControl>,<LONG _CancelControl>,|
                 <BYTE _EscCheck>,LONG _RecsPerCycle,LONG _MaxRecs)

         .

       _IntWin - True/False -    .
                   - False (  )
       _Title  -    .
       _Image  -      .
                    AniImage:xxx (.  .INC)
                   -   .
                  AniImage:FileCopy  AniImage:FileDelete 
                       . 
                    -  .
                    - ,  
                       .
           (_IntWin),   2  3 .

       _ProgressControl -    Progress   .
                           .
       _CancelControl -    Button,  
                          .  .
       _EscCheck -      Esc.
                     - True.
       _RecsPerCycle -        
                       /.
       _MaxRecs -    .   
                    .

  Kill PROCEDURE

          .    ,
           !    -  ,
        - .

  LoopStep PROCEDURE,LONG,PROC

             .     
             Windows-.
           :
             False -   Esc ( _EscCheck = True) 
                       ?Cancel (  _CancelControl)
                   .


!!!
     _RecsPerCycle     LoopStep() 
    ,       
   Esc   ?Cancel.     
    .

           
   Timer -  Init     Timer=1  Kill .
        Timer,  Init    !
  -  -    (  _RecsPerCycle)  
   LoopStep()   .

!!!
     ,   -   
   Init()    LoopStep().   Kill()  
     .
     _ProgressControl     
    Init()      
  Kill().          
      .


    .
1.      \LibSrc
2.     ROA_PRC.CLW    *.GIF
3.   INCLUDE('ROA_PRC.INC')    
   " MAP-"  " MAP-".

     ,     
           
.  ,     Legacy- .  
   ABC-.   - sorry!

================================================================================
     
 :

1.    .
        20     
     Esc   "".

DeleteRecs Procedure(*FILE F,STRING DelCondition)

BasicProcess BasicProcessType

  Code
  Open(F); if ErrorCode() then Return.
  Set(F); Stream(F)
  BasicProcess.Init(True,'  : '&Clip(Name(F)), |
                    AniImage:FileDelete+AniImage:Clock,,,,20,Records(F))
  Loop While BasicProcess.LoopStep()
    Next(F); if ErrorCode() then Break.
    if Evaluate(DelCondition) = '1' then Delete(F).
  .
  Flush(F); Close(F)
  BasicProcess.Kill()        !     
  Return


2.    .
         (   )
       Progress - ?ProgressBar    
    - ?Cancel.
       ,   20    
      Esc   ?Cancel.

DeleteRecs Procedure(*FILE F,STRING DelCondition)

Window Window...             !   
       ...
          PROGRESS,AT(4,4,100,10),USE(?ProgressBar)
       ...
          BUTTON(''),AT(30,40,40,14),USE(?Cancel)
       ...
       End

BasicProcess BasicProcessType

  Code
  Open(F); if ErrorCode() then Return.
  Set(F); Stream(F)
  Open(Window)               !     Init()
  BasicProcess.Init(,,,?ProgressBar,?Cancel,,20,Records(F))
  Loop While BasicProcess.LoopStep()
    Next(F); if ErrorCode() then Break.
    if Evaluate(DelCondition) = '1' then Delete(F).
  .
  Flush(F); Close(F)
  BasicProcess.Kill()        !      
  Close(Window)
  Return

