Jump to content
Sign in to follow this  
Czar

add preexisting pas/form

Recommended Posts

It is easy to add a unit to an existing item. However, I cannot see how I can take a unit and form from one project and then add it to another. If you add the pas file the form is not available.

 

How can this be done?

Share this post


Link to post
Share on other sites

is this what you're after ?

Forms, when declared 'external' in the project manager in the ide, consist of a .pas and a .smf file (when declared 'internal' the files are embedded in the .sproj project file).

Copying both form files to a new project effectively copies that form (probably easiest if you declare the new form in the new project first and then do the copying)

Share this post


Link to post
Share on other sites

The source is all external - I was simply trying to add a unit/form to my project - easy to add a unit but the form won't open.

I did a work around - create new unit of same name - save and then copy the .pas and .smf over the newly created code 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×