If the module contains more than 10,000 lines of code (a few hundred procedures, many structures and constants), how it all put in one file? The same code will dump!The entire Module/EndModule is best also written in a single file
It is better to divide the module code into multiple files.
For example.
Code: Select all
; File with the code module declaration (contains DeclareModule / EndDeclareModule).
XIncludeFile #PB_Compiler_FilePath + "MyModule_Declare.pbi"
Module MyModule
EnableExplicit
; Announcement of all private Module objects (Variables, structures, macros, etc.).
XIncludeFile #PB_Compiler_FilePath + "MyModule_pObject.pbi"
; Various procedures module.
XIncludeFile #PB_Compiler_FilePath + "MyModule_Misc.pbi"
; The core module
XIncludeFile #PB_Compiler_FilePath + "MyModule_Core.pbi"
; Further all public procedures of the module.
Procedure Init(State)
; Code procedure
EndProcedure
Procedure Config(*Info.ModuleConfig)
; Code procedure
EndProcedure
; The other public procedures.
EndModule
Why IDE can not analyze the file, including the directive XIncludeFile?