Arsip: Apa beda antara (Nil, Self, Application) ...?

more 16 years ago
die
:roll: Buat Dephier
saya mo nanya ni. kira-kira apa bedanya antara (nil, Self, Application). ini sering kali ditemukan kalo kita lagi buat kontrol saat
runtime. contohnya gini.
Form2 :=Tform2.Create (??????);
nah parameter untuk create (???) bisa pake nil, self, application.
Apasih bedanya. Maklum masih pemula.

more 16 years ago
madi
nil - specifies that no object owns the form - and therefore a developer (you) is responsible for freeing the created form (by calling myForm.Free when you no longer need the form)
Self - specifies the object in which the method is called. If, for example, you are creating a new instance of a TMyForm form from inside a Button's OnClick handler (where this button is placed on a MainForm) - self refers to "MainForm". Thus, when the MainForm is freed - it will also free "MyForm".
* Application - specifies a global TApplication type variable created when you run your application. "Application" encapsulates your application as well as providing many functions that occur in the background of the program.
[/quote:5c7f2d0c86]

more 16 years ago
deLogic
@DE:
hihihihi......
@die:
singkatnya adalah, siapa yang diserahi tanggung jawab untuk membebaskan alokasi memori yang digunakan untuk control tersebut.

more 16 years ago
die
Makasih saya dah ngerti. jadi pada intinya hanya penyerahan tangggun jawab buat pembebasan alokasi memori.

more 16 years ago
mas_kofa
kalo nil...berarti tidak ada yang bertanggungjawab ya?........, ibarat pepatah : abis lempar batu sembunyi tangan...

more 16 years ago
DelphiExpert
@mas_kofa: kalo nil...berarti tidak ada yang bertanggungjawab ya?........, ibarat pepatah : abis lempar batu sembunyi tangan...ada :) ... yang bertanggung jawab selanjutnya adalah OS
more ...
- Pages:
- 1
reply |
Report Obsolete
AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now:
https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- koneksi delphi dengan mysql
by buyungff in Hal umum tentang Pascal Indonesia more 18 years ago - simpan image ke database mysql
by hendra23 in MySQL more 16 years ago - gmn cara buat printout nota
by artan in Hal umum tentang Pascal Indonesia more 18 years ago - tidak bisa nge-print manual dengan QuickReport?
by gormet in Reporting more 17 years ago - cetak faktur ukuran 1/2 folio
by tupay in Reporting more 16 years ago - Exe dengan Parameter
by machomen in Hal umum tentang Pascal Indonesia more 19 years ago - Himpunan dan himpunan bagian
by telkom_1 in Tip n Trik Pemrograman more 17 years ago - Get TDBEdit Value Menggunakan LookUp Grid
by lukersgn in Reporting more 12 years ago - programmer sejati itu gmn seh?
by simba in OOT more 19 years ago - Aplikasi tetap jalan saat form menu utama ditutup
by hendrahongdexin in Hal umum tentang Pascal Indonesia more 14 years ago