Android Question Option explicit Required declare var warning #8

netsistemas

Active Member
Licensed User
Longtime User
In my code if I add an
B4X:
x = 1

I get a warning #8, but I want the compiler to give me an error, and not let me make a mistake in a variable definition.
After so many years, I don't know how I didn't realize this functionality before or when it changed.
How do I force all variables to be declared and not get a warning, but an error?
 

Attachments

  • warint8.jpg
    warint8.jpg
    40 KB · Views: 52
  • warnin8.jpg
    warnin8.jpg
    80.3 KB · Views: 51

netsistemas

Active Member
Licensed User
Longtime User
True,
thinking about how it happened to me, it was due to a search and replace in the entire project, I made a mistake in one letter, and that's where the error came from. I will have to review all the notices of my project or see how I locate the notices of only that type to correct them.

idea: view/localize warning by type.
Thanks, erel, one more time!!!
 
Upvote 0
Top