Error 409 - Sub/Function is too large

Sub/Function/Method/Property is too large - There is a reasonable limit for the physical size of a single Sub, Function, Method, or Property. The limit is imposed for practical reasons (such as the size of internal compiler buffers), but also for logical suitability. A huge block of code is very difficult to maintain. In the current version of PowerBASIC, this absolute limit is set at approximately 12,000 lines of source code per procedure. PowerBASIC recommends that each procedure perform one logical function, with a general goal of no more than perhaps 100 lines of source code. If you encounter this error, just break up your code into two or more procedures.