Simple Declaration Question
Posted on 2001-08-30
<ADD-ON 03:24 AM>
If you start to read this question, please look at the comment from pritam_dewan, that is the kind of information I am looking for.
"Declaring by Dim statement will indicate the compiler to allocate approriate memory for the variable
before assingment which is more reliable and faster,then without declaring it,will make the compiler
to identify the data type and then allocate the memory and then assign the value.So use of Dim is always
<END OF ADD-ON>
I have a lot of string variables in a module. What's the use of declaring them, stating
- Option Explicit is not used
- String variables are string$, string2$ ....
Is there any use to add a declaration line
Dim string$, string2$
in the beginning of the module?