I am very new to DELPHI PASCAL Programming.
I have imported the TLB file using Component->Import Component. I would like to use the class of the component and call its method.
for that i have declared class object like
TSam1 = class(SampleClass)
and called the method of it as
I am getting "E2076 This form of method call only allowed for class methods." Can anyone please guide me, where i am going wrong.