Dim isn't a Type, it tells to VB to dimension a variable as a particular type, e.g. for a string:since you've been omitting a Type in your declarations VB has been declaring them as Variants - which are slow and use more memory, e.g.Code:Dim MyVariable As StringCode:' these are the same thing Dim MyVariable Dim MyVariable As Variant




Reply With Quote