A class corresponding to the simple data type is specified as the base class for inheritance. Inheritance from simple data types is forbidden.
Change the base class.
Class TestClass: Variant
End Class TestClass;
When the specified code is compiled, the following error is displayed: Cannot inherit from the Variant class. To resolve the error, inherit the custom class from another class, for example, the Object class.
See also: