Difference between revisions of "Documentation/DevGuide/AppendixA/Parameter"
From Apache OpenOffice Wiki
< Documentation | DevGuide
m (1 revision(s)) |
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/AppendixA/Special Cases | |NextPage=Documentation/DevGuide/AppendixA/Special Cases | ||
}} | }} | ||
− | {{DISPLAYTITLE:Parameter}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/AppendixA/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Parameter}} | ||
Parameters are names for arguments of methods. | Parameters are names for arguments of methods. | ||
Line 25: | Line 26: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category: Appendix]] | + | |
+ | [[Category:Documentation/Developer's Guide/Appendix]] |
Latest revision as of 09:02, 18 May 2009
Parameters are names for arguments of methods.
Naming
Argument identifiers begin with a special lowercase letter as a prefix and put in initial caps later, for example, nItemCount.
Use the following prefixes:
- 'x' for interfaces
- 'b' for boolean values
- 'n' for integer numbers
- 'f' for floating point numbers
- 'a' for all other types. These are represented as classes in programming languages.
Usage
The order of parameters is defined by the following rule: Where, What, How. Within these groups, order by importance. For example, insertContent(USHORT nPos
, XContent
xContent
,and boolean bAllowMultiInsert
.
Content on this page is licensed under the Public Documentation License (PDL). |