Bug? Error after removing Sub Process_Globals from code module

JdV

Active Member
Licensed User
Longtime User
Hi

This may have already been reported (or explained) but I noticed that if you completely remove the Process_Globals sub from a code module the program won't compile and instead B4A throws the following error:

B4A version: 5.80
Parsing code. Error
Specified argument was out of the range of valid values.
Parameter name: index​

(This also happened in previous B4A versions.)

Can one or more of the following be done please:
- Make the error message more explicit
- Generate an error if the user removes the Process_Globals sub from the code module
- Add a default comment into the Process_Globals sub when it's created that lets the user know its existence is mandatory

Regards

Joe
 
Top