rspec/rules/S1650/rule.adoc

19 lines
426 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01: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()++``.
2020-06-30 12:47:33 +02:00
Instead, Strings should be explicitly declared with the String datatype.
== Noncompliant Code Example
----
Dim Text$ As String
----
== Compliant Solution
----
Dim Text As String
----