So, there is a question about what DIMis , but I can not find why I want to use it.
As far as I can tell, I don't see the difference between these three sets of code:
'Example 1
myVal = 2
'Example 2
DIM myVal as Integer
myVal = 2
'Example 3
DIM myVal = 2
If I omit DIM, the code still works, and after 2 or 3 nested loops, I see no difference in output when they are omitted. Coming from Python, I like to repair my code *.
So why do I need to declare variables with DIM? Besides stylistic issues, is there a technical reason to use DIM?
* I am also lazy and not used to declaring variables.
user764357
source
share