20 lines
462 B
Plaintext
20 lines
462 B
Plaintext
Variables declared without the explicit specification of a data type are ``++Variants++``. Variants can be inefficient to use because at each interaction they are converted to the appropriate type for that interaction. Variants may be required for COM interactions, but even then their type should be specified explicitly.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
Dim Count
|
|
Dim Bool
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
Dim Count As Integer
|
|
Dim Bool As Boolean
|
|
----
|
|
|
|
|