Jump to content
Registration disabled at the moment Read more... ×
Tom Crone

Class TSpinEdit not found

Recommended Posts

I'm using Delphi 11.3 CE. I get a EClassNotFound error TSpinEdit not found.

I assume I need to add something to my uses statement? I tried VCL.samples.spin (that's were the help file says TSpinEdit is).

When I tried Lazarus and got a TButton not found, I wasn't surprised, but ...

Share this post


Link to post
9 minutes ago, Tom Crone said:

I'm using Delphi 11.3 CE. I get a EClassNotFound error TSpinEdit not found.

Is TSpinEdit present on the Component Palette?  Is the "Embarcadero Sample Components" package ($(BDS)\bin\dclsmp280.bpl) installed in the IDE in the "Component | Install Packages..." dialog?

9 minutes ago, Tom Crone said:

I assume I need to add something to my uses statement? I tried VCL.samples.spin (that's were the help file says TSpinEdit is).

That is the correct unit.

Edited by Remy Lebeau

Share this post


Link to post

There is a Samples entry in the same 'bar' as 'Standard', 'System", 'Dialogs', etc. and it shows TSpinEdit; that is where I got it to put on  my form.

 

I just deleted the TSpinEdit from the form and replaced it; it then gave a TSaveDialog not found, so I deleted and replaced that too.

 

It now complies.

 

Any idea why?

Share this post


Link to post
1 minute ago, Tom Crone said:

I just deleted the TSpinEdit from the form and replaced it; it then gave a TSaveDialog not found, so I deleted and replaced that too.

 

It now complies.

 

Any idea why?

Your project was likely missing the relevant package references. Recreating the components updated the project. 

Share this post


Link to post

Thank you!

 

I don't understand why replacing the controls got the package references, when placing them the first time didn't,

but now I know something to try.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×