Skip to content

Check UndefinedVariable

github-actions[bot] edited this page Mar 6, 2024 · 2 revisions

The prefixed variable indicates it should have been declared in the local scope, but was used as a global.

Noncompliant Code Example

_method object.do_something()
  write(l_a)
_endmethod

Compliant Solution

_method object.do_something()
  _local l_a << 10
  write(l_a)
_endmethod

NOTE: This page is generated. Any changes made to this page through the wiki will be lost in the future.