Class Name is Expected

Description

Specification of the Fore language provides for class declaration in the specified block of the code.

Troubleshooting Tips

Change the specified identifier to specify the class identifier.

Example

Class MyClass: Object
    
End Class MyClass;

Sub UserProc;
Var
    Obj1, Obj2: MyClass;
Begin
    Obj1 := New MyClass.Create;
    Obj2 := New Obj1;
End Sub UserProc;

When the specified code is compiled, the string Obj2 := New Obj1; displays the following error: Class name is expected. To initialize the Obj2 variable, specify the same code as for the Obj1 variable.

See also:

Compiler Messages