3 ms·
> How is "Dim" worse than "var"??? Var means variable. In VB6/VBA, the Dim New syntax actually had different semantics; it would create the instance on first
by wvenable 10y ago
> How is "Dim" worse than "var"???
Var means variable.
In VB6/VBA, the Dim New syntax actually had different semantics; it would create the instance on first access instead of when the Dim statement was executed. It also had the fun side-effect that setting the variable to Nothing would destroy the instance but anytime you accessed that variable it would just create a new one. Irrelevant now, I guess, but still a nice bit of trivia.