Protected

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Language Keyword

Used to indicate the most mid-level scope for a members of classes and modules. Protected members can only be accessed from outside the class or module in specific situations.

Notes

In Modules, Protected means that you have to prefix the name with the module name when used outside the Module. For example a Protected property would be referred to by:

ModuleName.PropertyName

In Classes, Protected means that the item can be used in itself or its subclasses.

You do not directly use this keyword in your Xojo code. You set scope in the Inspector for the item.

See Also

Private, Public keywords