Gosub error

Kenneth Brody kenbrody at bestweb.net
Thu Oct 18 10:09:09 PDT 2007


Quoting Don Coleman (Thu, 18 Oct 2007 10:55:31 -0400):

> Windows 2000 & XP Pro clients, Windows 2000 Advanced Server, fP 5.0.13.
[...]
> This week I have seen a substantial increase in the number of gosub errors
> occurring during the day.  Since I don't believe any of the gosubs are
> nested I'm unsure as why I am receiving the "too many nested gosubs" error.
[...]
> Etc.  Could there be an issue with version 5.0.13 with regards to this error
> or am I missing something?

It is possible that you have a subroutine which doesn't execute a "return",
but rather "end" or perhaps a goto to something which will eventually gosub
again?

For example:

     loop
         ...
         gosub mysub
         ...

     mysub
         ...
         If: some condition
       Then: goto loop
         ...
         return

-- 
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list