Solved

How to regenerate/resync Unit code from Form or Frame?

Posted on 2000-03-11
3
178 Views
Last Modified: 2010-04-04
I am using Delphi 5. I defined a frame as part of a project and put a number of visual components on it. As normal, Delphi built a Unit, and filled in the definition of the frame object with the names and types of the components.

At one point, Delphi generated a bunch of Access Violations in DFWEDIT when I displayed that page in the editor. After I cleared them, I restarted Delphi. When I re loaded the project, all the definitions for the Frame form were gone. The components are all still on the Frame's form, though. The unit only contains  type MyFrame = class(Tframe) private public end;

How do I get Delphi to use the visual form and regenerate the corresponding code in its unit? I can't find anything like regenerate,
recreate, or resync in the help.

Thanks,

Tim.
0
Comment
Question by:tgodfrey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 100 total points
ID: 2608790
There isn't such a thing, unfortunately. However, you could try selecting all the components on the frame, cutting them, then pasting them back in again. If this succeeds Delphi should build the declaration in the unit for you.

Cheers,

Raymond.
0
 
LVL 15

Expert Comment

by:simonet
ID: 2608912
That's clever, Ray!
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2609029
Blush! <g>
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question