cannot resolve unit name 'xxxxx' error while using class

1.4k Views Asked by At

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;
1

There are 1 best solutions below

0
CodesDDecodes On BEST ANSWER

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