Property attributes

From Free Pascal wiki
Jump to navigationJump to search

Syntax Diagram

 PropertyDeclaration ::= PROPERTY Identifier [PropertyInterface] [PropertySpecifiers]   [Directives]
PropertySpecifiers ::= [ ... ] [ ... ] [ATTRIBUTES AttributesArray]
AttributesArray ::= '[' (AttributeDeclaration [, AttributeDeclaration]) ']'
AttributeDeclaration ::= '<string>':'<string>'

Declaration Examples

<delphi> TmenuItem = class(...) ... property Detachable: Boolean read FDetachable write SetDetachable attributes

['widgetsets:qt,gtk,win32', 'implementor:Vasya Pupkin', 'creation-date:01.01.2007'];

... end; </delphi>

<delphi> TxxxDatabase = class(...) ... property TransactionModel: TTransactionModel read FtransactionModel write

SetTransactionModel attributes ['engines:firebird,oracle,sybase-asa'];

... end; </delphi>