-
Hi again everybody,
I saw a lot of people who declare their variants like this:
Code:
Dim Var1, Var2, Var3, ..., as integer
Take care !!
Only the last variant is declare as "Integer". The others are declare as "Variant"
To avoid this, declare your variants like this:
Code:
Dim Var1 as Integer, Var2 as Integer, ...
-
Good advice :) But one minor point, for newbies:
You declare Variables, not Variants.
What (B2F)Tom means is that your variables take the default type variant unless you explicitly give each one it's own type.
-
Thanks benski, you're right. My english is over!!!!
[Edited by (B2F)Tom on 07-07-2000 at 06:00 AM]