Solved

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

Posted on 2000-03-11
3
179 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month3 days, 15 hours left to enroll

630 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