Procedures are not compiled unless they are called from SB
Posted: Sat Mar 04, 2017 12:45 pm
Hello,
As the subject says: if a procedure is not called directly from SB, it will not be compiled into JS code. Please see the following code:
This produces a reference error in Firefox. Examining the compiled JS file, we can see that neither ProcA as 'f_proca' or ProcB as 'f_procb' are in the code.
SpiderBasic should either compile all the procedures defined, or make this customisable.
Erion
As the subject says: if a procedure is not called directly from SB, it will not be compiled into JS code. Please see the following code:
Code: Select all
Procedure ProcA()
!alert('Procedure A');
EndProcedure
Procedure ProcB()
!alert('Procedure B');
EndProcedure
! f_procb();
SpiderBasic should either compile all the procedures defined, or make this customisable.
Erion