Too many nested gosubs

Richard Kreiss rkreiss at gccconsulting.net
Thu Nov 14 10:05:45 PST 2013


I have a routine I just wrote to delete pdf files older the 60 days from the current date.

The program reads in the file names and the does a system call to delete that file.  The routine gets the name, does a mid on @dirlist[] to get the files date and tests it to see if it is range to be deleted.

In many cases the folder with the pdf file may have well over 1000 pdf files to be deleted.  The date check is the GOSUB routine which most likely is where the problem lies.

This problem will not exist after this initial run as it will become part of a daily report run.

However, I would like to know how many iterations of a gosub can be run before this error occurs.

I think this question was answered many years ago,


Richard Kreiss
GCC Consulting

Office: 410-653-2813




More information about the Filepro-list mailing list