首页 > cat > resident 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  刷新  搜索  管理  
文档
历史
 
Using reserved keywords as identifiers
To use a property name that is also a Gambas reserved name in your personal class, you must enclose the property name within { }.

Will both cause a compile error Will not
Property Font as Font Property {Font} as Font
Property Left as Integer Property {Left} as Integer

Thus the compiler is kept from interpreting a symbol as a reserved keyword which allows you to use any desired symbol as an identifier.

This syntax can be used for methods declaration, constants declaration, events declaration, arguments... Anywhere an identifier is possible!

参见

Array Declaration, Constant Declaration, Events declaration, Local Variable Declaration, Method Declaration, Variable Declaration