Closed larswestman closed 2 years ago
Does the warning go away if you remove the quotes around the variable name? I have just discovered an equivalent warning for variables used as properties in fields and actions.
Yes, without quoutes the warning goes away.
Thanks for reporting this issue. Sorry we haven’t completed it yet, but we’ve had to prioritize elsewhere. We’re planning to give the CodeCop engine and its rules an overhaul in a future major release. Thanks for your patience.
For this case consider using Pragma Warning Directive.
Describe the bug A variable that is assigned a value and used as a source expression for a control will raise this warning
To Reproduce Steps and to reproduce the behavior: Use a variable as source expression. Example below (simplified version of the real page which obviously does not make much sense)
The line "NoOfItemLines := 1;" will have a warning
Expected behavior Should not be a warning
5. Versions: