Jump to content
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
Posted (edited)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×