Re: [Gambas-user] Breaking processes

2009-11-04 Thread M. Cs.
Thanks, I think it should really work! I'll check it and write again if it won't. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deploymen

Re: [Gambas-user] Breaking processes

2009-11-04 Thread Doriano Blengino
Dimitris Anogiatis ha scritto: > Hey M, > > to stop the execution of a for loop all you have to do is check for a > condition then use break > > for example > > > PUBLIC SUB FCopy() > DIM i AS Integer > Dim stopLoop as Boolean > DIM filepaths AS String[] > ' the array filep

Re: [Gambas-user] Breaking processes

2009-11-04 Thread Dimitris Anogiatis
Hey M, to stop the execution of a for loop all you have to do is check for a condition then use break for example PUBLIC SUB FCopy() DIM i AS Integer Dim stopLoop as Boolean DIM filepaths AS String[] ' the array filepaths is filled with contents FOR i=0 To filepaths.Cou

[Gambas-user] Breaking processes

2009-11-04 Thread M. Cs.
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/