I am having a little problem with 'FindComponent' in Lazarus.
Here is my code:
The Code with FindComponent:
TPlayer(FindComponent('Player' + IntToStr(Player))).
TPlayer = class(TObject)
When i use this code, i get an aces violation. I use Lazarus v. 0.9.28.2 beta and windows XP. And while compiling i get the warning "unit1.pas(425,15) Warning: Class types "TComponent" and "TPlayer" are not related".
TRessourcen = class(TObject)
I think it my be because TObject isnt a Component, so is there some similar procedure like FindComponent for Objects
Thnx for any help.