|
Forum Index : Microcontroller and PC projects : CM2: maximum number of user defined subroutines and functions
| Author | Message | ||||
| bar1010 Senior Member Joined: 10/08/2020 Location: United StatesPosts: 197 |
Would it be possible to increase the maximum number of user defined subroutines and functions to a number considerably larger than 500? Actually I do not have anywhere near that number at the moment, yet am receiving Error : Too many SUB and FUN. |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
The error message is a little deceptive. It should say "Too many nested SUB and FUN". You are probably recursively calling a SUB or FUN and have reached the limit. Due to the way that BASIC (and MMBasic works) recursion is limited and has some restrictions. For example you will get into trouble if you recursively call a sub/fun from a FOR...NEXT loop within that sub/fun. Geoff Geoff Graham - http://geoffg.net |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |