An identifier of a non-existing constructor is specified during initialization of an object of some class.
Check for syntax errors in the constructor identifier. It is possible that the visibility scope of the constructor does not allow the use of it in the specified location of the code.
Class MyClass: Object
Public Constructor Create;
Begin
End Constructor Create;
Constructor Create1(a: Integer);
Begin
End Constructor Create1;
End Class MyClass;
Sub UserProc;
Var
Obj: MyClass;
Begin
Obj := New MyClass.Create1;
Obj := New MyClass.Create2;
End Sub UserProc;
When the specified code is compiled, each initialization string of the UserProc procedure displays the following error: Constructor could not be found. In the first case the visibility scope of the Create1 constrictor does not allow the use of it outside of the MyClass class. In the second case an identifier of a non-existing constructor is specified.
See also: