I very often find myself writing code such as:
Dim n as int
For n=0 to 100
'Do stuff
Next
Now, some languages have a neat construct which saves a mostly unnecessary line. In Basic, it would be something like:
For n as int=0 to 100
'Do stuff
Next
Basically, an inline Dim where the variable is dimmed on first use. Somewhat like an even shorter form of:
as a substitute for:
Personally, I wouldn't use it on important or complex variables, but for trivial ones like in the example, it's very practical.