Friend Procedure

Friend procedures cannot be used in standard modules.
A procedure defined as a friend allows the procedure to be called from modules that are outside the class, but part of the project within which the class is defined.
This modifies the definition of a procedure in a class module to make the procedure callable from modules that are outside the class.
Friend procedures cannot be used in standard code modules
The Friend keyword can be used for variables and methods declarations with an class module or userform module
Friend scope allows other modules within the same project to access these variables or methods.
This scope it different to Public because public variables and methods are exposed outside of the current project.



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext