rspec/rules/S1652/vb6/rule.adoc

14 lines
253 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Because the value returned never changes, it is inefficient to call ``++Asc++``/``++AscW++`` on a String constant. Use the numeric value instead.
== Noncompliant Code Example
----
intCode = Asc("*")
----
== Compliant Solution
----
intCode = 42
----