rspec/rules/S1650/vb6/rule.adoc

20 lines
427 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Appending '$' to any identifier forces it to the String data type, but this usage is obsolete and should only appear when differentiating string-specific functions from variant functions, such as ``++Left$()++`` versus ``++Left()++``.
Instead, Strings should be explicitly declared with the String datatype.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
Dim Text$ As String
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
Dim Text As String
----