Cannot Inherit from the <ClassName> Class

Description

A class corresponding to the simple data type is specified as the basic class for inheritance. Inheritance from simple data types is forbidden.

Troubleshooting Tips

Change the basic class.

Example

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:

Compiler Messages