How can I stop the execution of a loop which includes shell command for copying files?
Example: PUBLIC SUB FCopy() DIM i AS Integer DIM filepaths AS String[] ........................' the array filepaths is filled with contents FOR i=0 To filepaths.Count-1 SHELL "cp -f " & filepaths[i] & " /home/destination" NEXT END I'd like to add a Cancel button which would break the loop.Thanks! ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user