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

 
user image
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.
user image
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]
user image
more 16 years ago

DelphiExpert

moga-moga ngerti :roll:
user image
more 16 years ago

deLogic

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

alvonz

heheh kalo gak ngerti pake translate aja xixixixx :lol: :lol:
user image
more 16 years ago

madi

hehehe..maap klo bhs engres, lha tugasku cuman meng-copy paste doank.. :lol:
user image
more 16 years ago

die

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

mas_kofa

kalo nil...berarti tidak ada yang bertanggungjawab ya?........, ibarat pepatah : abis lempar batu sembunyi tangan...
user image
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
Share to

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

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com