VBR00098 — A property or method call cannot include a reference to a private object, either as an argument or as a return value
Severity: Error · Family: VBR (runtime semantics) ·
Source metadata: VBRuntimeErrorInfo
A public call includes a reference to a private object.
MS-VBA run-time error 98; 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 98 or Error 98.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
| A public call includes a reference to a private object. | passing a private-class object to a public method | Make the type public, or do not expose it. |
See also
⏮️ VBR00097 Can not call friend function on object which is not an instance of defining class | ⏭️ VBR00321 Invalid file format
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca