Test Design StudioGo to Previous Topic: CA0114 - Do not assign values to methods, only properties.Go to Next Topic: CA0116 - Missing index argument

CA0115 - Assign property values properly

Summary

VBScript requires you to use the Set keyword when assigning object-based references to properties, and the Set keyword must not be used when working with scalar or non-object-based references.

Solution

If you are assigning an object-based reference to a property, make sure you use the Set keyword. For user-defined classes, you will also need to ensure that the class has a corresponding Property Set declaration.

If you are assigning non-object-based data to a property, do not use the Set keyword. For user-defined classes, you will also need to ensure that the class has a corresponding Property Let declaration.