Delphi won't Find a component

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
rimaqui
Newbie
Newbie
Posts: 5
Joined: Wed Jun 20, 2012 12:00 am

Delphi won't Find a component

Post by rimaqui » Mon Sep 03, 2012 7:32 pm

Hi Yeray,

I'm having problem with the findcomponent method for TChartAxis. I've seen in the documentation that there's not such a method for this type.

This is the command line I'm using to access the component dynamically:
TChartAxis(FindComponent(Eixo)).AutomaticMaximum := false;

At runtime, Delphi don't find the component named Eixo, that's passed as string and the content of Eixo is declared as TCharAxis. The compiler don't give an error.

Is there any other way to access it dynamically?

Thanks and best regards.


Ricardo Mayer de Aquino

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Delphi won't Find a component

Post by Yeray » Tue Sep 04, 2012 10:17 am

Hello Ricardo,

Can I ask in what situation you may know the name of a TChartAxis and not the object itself?
Normally you access the axes through Chart1.Axes.Bottom or Chart1.Axes.Left. Or if it's a custom axis: Chart1.CustomAxes.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

rimaqui
Newbie
Newbie
Posts: 5
Joined: Wed Jun 20, 2012 12:00 am

Re: Delphi won't Find a component

Post by rimaqui » Fri Sep 07, 2012 12:04 am

Hi Yeray, thank you for your answer. It was a silly question that I made.
Best regards.
Ricardo

Post Reply