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 -ffilepaths[i]
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
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 filepaths is
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