rspec/rules/S1652/vb6/rule.adoc

17 lines
256 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.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
intCode = Asc("*")
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
intCode = 42
----