VBR00097 — Can not call friend function on object which is not an instance of defining class
Severity: Error · Family: VBR (runtime semantics) ·
Source metadata: VBRuntimeErrorInfo
A Friend member is called on an object that is not an instance of the class that defines it.
MS-VBA run-time error 97; the numeric portion of the code is the error's number. The runtime semantics of the platform do not raise this yet; a workspace raises it with Err.Raise 97 or Error 97.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
A Friend member is called on an object that is not an instance of the class that defines it. |
a Friend call through another class's reference |
Call it on an instance of its class. |
See also
⏮️ VBR00096 Unable to sink events of object because the object is already firing events to the maximum number of event receivers that it supports | ⏭️ VBR00098 A property or method call cannot include a reference to a private object, either as an argument or as a return value
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca