このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Re-using an old 事業/計画(する) as basis of a new one HOME - - - - - Lazarus Tutorials TOC - - - - - - Other 構成要素 for programmers

Efficient Lazarus 開発

Re-using the code of an earlier 事業/計画(する)

とじ込み/提出する: lt2c.htm


This has good (警察などへの)密告,告訴(状), and a search button at the 底(に届く) of the page

Please don't 解任する it because it isn't 十分な of graphics, scripts, cookies, etc!

This page is "browser friendly". Make your browser window as wide as you want it. The text will flow nicely for you. It is easier to read in a 狭くする window. With most browsers, 圧力(をかける)ing 加える, minus or 無 while the 支配(する)/統制する 重要な (ctrl) is held 負かす/撃墜する will change the texts size. (大きくする, 減ずる, 回復する to default, それぞれ.) (This is more fully explained, and there's another tip, at my 力/強力にする Browsing page.)


いつかs the 事業/計画(する) you are planning to 令状 today has much in ありふれた with a 事業/計画(する) you wrote 以前.

It is 平易な to use an earlier 事業/計画(する) as the basis for a new one. You could probably 人物/姿/数字 everything out for yourself. But if you'd rather, read on, and take advantage of the fact that I've written out the steps for you.

Some of the advice below assumes you want to use my working practices. In particular, the 指名するs of folders, とじ込み/提出するs, 反対するs do not have to follow the 指導基準s I 申し込む/申し出.

How to clone a 事業/計画(する)

First, shut 負かす/撃墜する the Lazarus IDE, if it happens to be running at the moment.

Then create new folder. For this example, I am going to show you how to create an 使用/適用 called LDN004 from one called LDN003, so the folder 指名する would be LDN004.

Use your operating system's usual 道具s, copy all parts of source 事業/計画(する), to the new folder. (The "backup" and "lib" folders do not need to be copied, nor the .exe とじ込み/提出する, but if it is just easiest to copy everything, it won't 傷つける. You'll be 削除するing the copies in a moment, anyway.)

Still assuming that the Lazarus IDE is not running... (の近くに it if it is!)...

Take care that you do indeed 単に COPY the parts. (It is 平易な to accidentally move instead... thus 除去するing your copy of the source code, etc... not good... for the 使用/適用 you thought you were creating the clone of.)

All of the 残り/休憩(する) of this is done in the new folder.

Sidebar: If you are re-working an old, old 事業/計画(する), you may not find the ".lpi" とじ込み/提出する I will について言及する すぐに. If you don't, be 特に careful about backups, 許すing you a 最近の "known good" 見解/翻訳/版 to 落ちる 支援する on. If there is no ".lpi" とじ込み/提出する, I hope you at least have an ".lpr" とじ込み/提出する. Use that in place of the ".lpi". if you have both, use the .lpi.

These techniques worked 井戸/弁護士席 for me 7/24 (Laz 3.4 / Win11Pro), 6/23 (Windows 10, Lazarus 2.0.0). The same techniqes that were "old" at 11/17! (Windows 7 and Lazarus 1.6.2.)

I have been using these techniques for a long time. No hassles. I don't think I've recently tried to clone from a 事業/計画(する) that had no .lpi とじ込み/提出する. They do work, even with .lpr, if that's your only 選択.

But work carefully! It can go wrong! In messy ways. 特に if you failed to make the separate copy, and work only with that.

If the 事業/計画(する) has an .lpi とじ込み/提出する use that to open the copy of the 事業/計画(する) for the 目的s this tutorial 演説(する)/住所s.

If you accidentally 開始する,打ち上げる the programming 過程 by 二塁打 clicking an .lpr とじ込み/提出する, when an .lpi is also 現在の, you 危険 All Sorts Of Weird Stuff. Weird stuff which can "支援する annotate" (change) the "初めの", "main", copy of the code you are creating a new app from... I think. At least something like that happened to me a while 支援する, more than once, and it gets Very Messy! (If in 疑問, create a backup of the stuff you are working from before you try to create the derivative app. Just in 事例/患者.)



1) While 存在 careful that you are working with the copy in the LDN004 (or whatever you've called the new app) folder, 二塁打-click on the .lpi とじ込み/提出する. (Or .lpr とじ込み/提出する, if you don't have an .lpi とじ込み/提出する. ) That would be LDN003.lpi (or LDN003.lpr) in my example. Lazarus should open.

1b) Open the main 部隊 of the 事業/計画(する), the ".pas" とじ込み/提出する, if it isn't open already.

1c) It would be best of you were trying to clone something that will at least 収集する? Use Run/Quick 収集する to make sure. (Don't use the 補欠/交替の/交替する, "収集する", just yet.) It doesn't 事柄 if you get WARNINGS. It doesn't 事柄 if the code doesn't やめる do what you want it to... but if it won't 収集する, the に引き続いて may not work for you. But it might... 圧力(をかける) on, if you for some 推論する/理由 don't want to "touch" the 事業/計画(する) you are cloning.

2) Use the 反対する 視察官 (f11) to change the 指名する of the form, e.g. LDN003f1 to LDN004f1. Be sure to move the insertion point out of the form 指名する edit box, to make your ーするつもりであるd change happen. (You can have Upper 事例/患者 characters here. (They aren't 許すd in filenames. We'll discuss that すぐに.)

If you used the 事業/計画(する) ID in the form's caption (a good idea!), edit that too.

3) Switch 支援する to the window for the main UNIT, the .pas とじ込み/提出する (f12 once or twice). Click "とじ込み/提出する | Save As", and save the 部隊. You can't have spaces in the 指名する, and in some 事例/患者s, e.g. .pas とじ込み/提出するs, if you use any UPPER CASE letters, Lazarus will, without telling you(!), 変える them to lower 事例/患者.

You can use 強調するs to turn NameLikeThis to name_like_this. さもなければ you'll be trying to read namelikethis. These "problems" arise, I believe, because Lazarus runs on Linux, Macintosh and Windows. Once you start saving things, using the OS, different 支配するs 適用する in different places, so a cross-壇・綱領・公約 app needs 制限s a 選び出す/独身 壇・綱領・公約 app can eschew.

(You should be 申し込む/申し出d .pas as the default 拡張. If you get .frm, you still have the 焦点(を合わせる) on the 部隊's form, probably from when you changed its 指名する. Be sure you are in the 権利 folder... you should be.... Save the 部隊 (i.e. the .pas とじ込み/提出する) under the new 指名する. (E.g. ldn004u1.pas.) You may get a message asking if you want to 削除する the old 部隊. Look closely at (警察などへの)密告,告訴(状) in the question, and as long as it is 明示するing the copy in your new folder, say "yes". (Say no, if in 疑問, and 削除する the copy-in-new-folder of the old .pas とじ込み/提出する by 手渡す, later. It won't do 害(を与える), "lying around".)

You may also see "The 部隊 (xyz) is used by other とじ込み/提出するs. Update 言及/関連s automatically?". Say "Yes", or "Yes to All", if that's on 申し込む/申し出.

4) If you created sub-部隊s, (to "divide and 征服する/打ち勝つ" your code, then for their 指名するs (and the 指名するs of their forms, when 現在の... not every sub-部隊 entails a form))... Go through all of them, 改名するing the form and then switching 支援する to the 部隊, and re-saving it with a 改訂するd 指名する. E.g., if there was, say, a sub-部隊 called ldn003_drawgraph.pas, you would make that ldn004_drawgraph.

There's a "新たな展開" in the tale of doing the above which was not intuitive to me. (Laz 2.0.0)---
I worked across the tabs open in the source editor window. (Be sure there is a tab open for each of your .pas とじ込み/提出するs!)

Click in the next tab. Then 圧力(をかける) f12, f11. The f12 will switch you to the form for the .pas 部隊 (If it has one! Not all do, of course.) The f11 takes you to the 反対する editor for THAT form, i.e. the 権利 place to change its 指名する. (If you have some .pas とじ込み/提出するs with no associated form... as you may 井戸/弁護士席 do, to 'divide' some subroutine code to '征服する/打ち勝つ' it, then you skip the "改名する form" part, but you DO still need to resave the とじ込み/提出する under the 改訂するd filename, using the "とじ込み/提出する/Save As" that you use どこかよそで.)

(If the sub-部隊s are generic, "toolkits" you use across さまざまな 事業/計画(する)s, then all will be 井戸/弁護士席, if you just leave the old 指名するs alone. But if a sub-部隊 has "LDN003" in the 指名する, it is an 招待 to 混乱 to use it under that 指名する in LDN004! Give 株d sub-部隊s a 指名する that reminds you that they get 株d.)

=====
So far, so good, but you need to save the 事業/計画(する) specification もう一度 同様に, not just the .pas 部隊, which you just did. (You have also already saved the 鮮明度/定義 of the form used by the .pas 部隊.)

5) To save the 事業/計画(する) specification (with the new base 指名する), use the "事業/計画(する)" menu item. "事業/計画(する) | Save 事業/計画(する) As...". The dialog will 示唆する that you are saving an .lpi とじ込み/提出する, but several other とじ込み/提出するs, (含むing (perhaps) the wretched .lpr とじ込み/提出する,) arise along the way. (By the way- if you want to use upper 事例/患者 letters here, it will be okay. (Always "okay", but in other 状況s, Lazarus changes them to lower 事例/患者.))

Almost done!

実験(する) whether you 後継するd

To see if you were successful....

If the cloned 事業/計画(する) starts up okay, then all is probably 井戸/弁護士席! But don't run it until you read the next two paragraphs!

If you use ini とじ込み/提出するs, go into the code, change the 指名する as necessary. (E.g., for our example, re-code the program to look for LDN004ini.txt rather than LDN003ini.txt). If you used sub-部隊s, you may need to change 言及/関連s to them. (Do a search on "LPN003". 直す/買収する,八百長をする as necessary... but beware of changing, say, rems 説 that a feature was new in such and such a 見解/翻訳/版 of LPN003)

Also 改名する the "lib" folder "xlib". (It may 持つ/拘留する 収集するd code that is 必須の to your 事業/計画(する) which depends on 部隊s you may not have "brought 今後" into the clone, or may have unwisely put in "捨てるs". Once you have 改名するd the old lib to xlib, you may go through a season of failed 収集するs on the basis of 致命的な errors, "Cannot find [filename] used by [filename]." As soon as you find, and return the 事業/計画(する)'s main folder, something that was needed, what you've just 回復するd will make its needs known. Sigh. You can do this. The good news is that if you don't use many 外部の 部隊s, which is how a novice is likely to work, you won't have this problem!

NOW try 収集するing, running the app again. (Click the green "Run" arrow on the toolbar, or 圧力(をかける) f9). A new "lib" folder should appear, if you look at what's in the folder your 事業/計画(する) is in. The app should 収集する and run nicely.

Tidy up...
結局. Before too long, when you're happy that all is 井戸/弁護士席, you should 削除する the "捨てるs" and xlib" folders. Better to discover sooner rather than later that something inside it is 存在 used somehow! (Perhaps best just to 改名する it, first, to be on the 安全な 味方する. いつかs the operating system will 妨害する you 試みる/企てる to hide the とじ込み/提出するs you hope you aren't using... but at least you've tried to catch that 状況/情勢.)

Final tidies

What Lazarus has taken care of for you is very impressive. It can be forgiven, if a few little 半端物s and ends need to be dealt with.

As I said, use the Lazarus "Search | Find" 道具 to ざっと目を通す your code for any remaining 痕跡s of the old 使用/適用. You may have used the 使用/適用's 指名する in a comment... which will have to be edited by 手渡す... or, say, in the text of a label, or どこかよそで. Again, that will have to be changed to the new 指名する by 手渡す.

A 生産性 高めるing 技術

I hope you will remember the system 述べるd in this tutorial... many times a "new" 使用/適用 can be derived from earlier work. Be a little 用心深い about using earlier work which wasn't done 井戸/弁護士席... いつかs a fresh start gets you away from corners you painted yourself into 以前. However, the more you 令状 使用/適用s, the better your code will be, and the more often you will be doing something which can 利益 from the work done on an earlier 事業/計画(する).

You may also be 利益/興味d in some 公式文書,認めるs I've written about things I like to put in every program I 令状. It shows you, for instance, how to tweak what is in the 使用/適用's 肩書を与える 妨げる/法廷,弁護士業.

Another 技術... creating 部隊s to be used by many programs... will 証明する even more useful, once you are working on things that have ありふれた elements. I 港/避難所't written 特に about creating stand-alone 部隊s in Lazarus... because what I wrote in a Delphi tutorial on the 支配する 証明するd 十分な for my wants.





To search THIS 場所/位置.... (Go to my other 場所/位置s, below, and use their search buttons if you want to search them.)

索引 sitemap

The search engine 単に looks for the words you type, so....
*    (一定の)期間 them 適切に.
*    Don't bother with "How do I get rich?" That will 単に return pages with "how", "do", "I"....


If you visit 1&1's 場所/位置 from here, it helps me. They host my website, and I wouldn't put this link up for them if I wasn't happy with their service. They 申し込む/申し出 things for the beginner and the 会社/団体.www.ionos.com icon

広告 from page's editor: Yes.. I do enjoy 収集するing these things for you. I hope they are helpful. However... this doesn't 支払う/賃金 my 法案s!!! Sheepdog ソフトウェア (tm) is supposed to help do that, so if you 設立する this stuff useful, (and you run a Windows or MS-DOS PC) please visit my freeware and shareware page, download something, and 循環させる it for me? Links on your page to this page would also be 高く評価する/(相場などが)上がるd!
Click here to visit editor's freeware, shareware page.

Link to Lazarus Tutorials main page

How to email or 令状 this page's editor, Tom Boyd. Please 特記する/引用する "lt2c.htm".



Click HTML validity Page has been 実験(する)d for 同意/服従 with INDUSTRY (not MS-only) 基準s, using the 解放する/自由な, 公然と accessible validator at validator.w3.org. Mostly passes.

AND passes... Check CSS validity


One last bit of advice: Be sure you know all you need to about spyware.

. . . . . P a g e . . . E n d s . . . . .