Test Design StudioGo to Previous Topic: CA0113 - Do not assign values to constantsGo to Next Topic: CA0115 - Assign property values properly

CA0114 - Do not assign values to methods, only properties.

Summary

A method (i.e. Function or Sub) cannot have a value assigned to it. Attempting to do so will result in a run-time error.

Solution

Values are passed to methods through arguments, not through assignment. You may also have accidentally entered the name of a method when you meant to enter the name of a variable or property, so verify your statement matches your intent.