Android Question What compiler Error for undefined variables

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Sometimes the compiler tells me that I have a variable that is not used so I comment it out and compile and run my program and everything seems fine.

Later on I scroll into my program and find a place where I am setting this variable (that I have now comment out or deleted). But am really not using.

Is there any setting that I can tell the compiler I want an Error for any Undefined Variables?

I am sure someday having an undefined variable and using it somewhere else is going to cause me problems.

Thanks

BobVal
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Make sure that this option is checked:

SS-2014-12-19_09.31.55.png


The warning list will now be updated each time you save your project.

SS-2014-12-19_09.32.42.png


You can click on entries in the list to jump to the correct place.
 
Upvote 0
Top