If one declares a VB6 variable thus...
Public THISVAR, THATVAR, THEOTHERVAR
what type are the variables created?
If one declares a VB6 variable thus...
Public THISVAR, THATVAR, THEOTHERVAR
what type are the variables created?
It depends.
Usually these end up being Variants but you can use DefXxx statements to alter default data types based on first letter of a variable name which is kind of weird legacy feature.
We use DefObj A-Z
in all our modules immediately after Option Explicit
so that typeless vars, params and retvals (not allowed here by coding conventions) end up being As Object
and usually generate compile-time errors or crash in flames at run-time.
So in your case these would be Nothing
(uninitialized As Object
var) if this declaration happen to be one of our modules.