Solved

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

Posted on 2000-03-11
3
177 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
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Title # Comments Views Activity
Print Graphic and Text to Epson TM-T88v 12 390
Delphi: Connect to running MS Outlook 4 123
Firemonkey webbrowser scrollbars ? 1 50
how to resize animated Gif image in delphi ? 1 35
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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