Nomenclature
한국어 · Deutsch · English · Español · Français · Português · Русский · 日本語
- properties should not start with a verb, but with a noun
- methods should start with a verb
- method names "GetFoo" are reserved for property "Foo" getters
- method names "SetFoo" are reserved for property "Foo" setters
- method names "DoFoo" are reserved for calling event "OnFoo"
- suggestion: use "UpdateFoo" instead of "DoSetFoo" to update certain characteristics or to make some assertion valid
- event properties should be named On.... starting with an adjective, then verb, then a noun (some are optional): like OnFilterRecord, OnPostError, OnDblClick (adjective to verb first)
- notifications for TControl decendants should be named CNxxx
From the Free Pascal wiki, page "Nomenclature", as it stood on 2013-07-23 after a change by Jwdietrich, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 3 people, 2005–2013
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Neli | initial text | |
| Neli | tcontrol notifications | |
| Neli | add event property guide | |
| Swen | (minor) | |
| Jwdietrich | ||
| Jwdietrich |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
