Search code examples
delphi-xe8

cannot resolve unit name 'xxxxx' error while using class


I am creating a unit Stringy and its type is TStringy = Class. I am then trying to use this class in my form. So in other file.pas, I am trying to use it. While doing uses Stringy; on Stringy I am getting red line error 'Can not resolve unit name 'Stringy'

//TStringy.pas file:

unit Stringy;

interface

type
    TStringy = Class


//Code on form that is supposed to use it:

uses Stringy;

Solution

  • I changed my file name to Stringy.pas from TStringy.pas and issue resolved.