rspec/rules/S1650/vb6/rule.adoc

29 lines
588 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
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]