Reputation: 57
I have read a lot of naming conventions for Delphi, but, even on a somewhat official documentation (Object Pascal Style Guide), it seems to be no consensus as for form names.
Let's say I have a unit called "Main". According to the linked doc, the unit file name would be "Main.pas" and its class would be "TMain". But what about the form name (name property)? In my company, we usually name the forms with the prefix "F_" plus the unit name, in this example, "F_Main", but it feels weird when compared to the Embarcadero doc.
Is there a official convention, or a more used pattern?
Upvotes: 0
Views: 1861
Reputation: 57
There is no official naming convention in Delphi and you are free to use what best works for you, however there are good guidelines like the one I linked in my question. I personally decided to use "frm" since it matches my component naming prefixes, like "lbl" for labels as so on.
Upvotes: 1