Test Design StudioGo to Previous Topic: CA0102 - Properties should have a return value on 'Get' declarationGo to Next Topic: CA0104 - Avoid unused parameters

CA0103 - Subs should not have a return value

Summary

A Sub, by definition, does not return a value. You must use a Function declaration to return a value.

Solution

If you do not intend to return a value, remove the unnecessary statement. Otherwise, change your declaration from a Sub to a Function so that your value may be properly returned.