iOS Question Can we have selectable warning messages

vikingivesterled

Active Member
Licensed User
Longtime User
Would it be possible to tick on/off what warning messages is shown in the top of the logs tab.
Some benign ones drown out the more important ones, sample:
- Variable is never assigned any value (warning #10) . The variable might be used in a different module and is therefore ok
- Unused variable (warning #9), same as above.
Or they will be used in future app enhancements, or in b4a versions of a b4a app, and needs to be left for consistency and copy/paste ability.

This would be usefull in both b4i and b4a
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

vikingivesterled

Active Member
Licensed User
Longtime User
Whether it is simple to have to set it in each module when there is 70 code modules in an app is up for debate.
But it did help me with the problem so thanks.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
If a variable is used in a different module then it should be declared as Public - in which case I don't think you'd get a "never assigned a value" warning. You can use 'ignore - eg:
B4X:
Private varThatWillGenerateWarning as Int 'ignore
to suppress warnings.

- Colin.
 
Upvote 0
Top