RDCore Diagnostics
|RDC01011|Variable not used|A variable nothing reads|
|RDC01012|Variable not assigned|A variable read and never assigned|
|RDC01013|Parameter not used|A parameter nothing in its procedure refers to|
|RDC01014|Assigned ByVal parameter|A ByVal parameter its procedure assigns|
|RDC01015|Constant not used|A constant of a procedure nothing refers to|
|RDC01016|Line label not used|A line label no jump names|
|RDC01017|Write-only property|A public property with no Property Get|
Every problem the RDCore platform reports carries a stable code and, through the LSP
codeDescription field, a link to its page here. See
RD-VBAL §2.6 Diagnostics for the definition of each code
family, and RD-VBAL §2.6.5 Diagnostics Pipeline
for the pull pipeline.
| Family | Prefix | Raised by |
|---|---|---|
| Syntax errors | VBC (VBC00001–VBC00999) |
the parser, walking the concrete syntax tree |
| Semantic compilation errors | VBC (VBC09300+) |
the static semantics layer, walking the abstract syntax tree |
| Runtime errors | VBR / VBA |
the runtime semantics layer (VBR) / a workspace Err.Raise (VBA) |
| Rubberduck Core diagnostics | RDC |
the RDCore.Diagnostics analyzers |
A diagnostic of the analyzers can be turned off by its code: see Disabling a Diagnostic.
Stability
A code has a page here as soon as the platform can emit it.
Once published, a code is not renumbered and not retired: a workspace built against an older release must still resolve its diagnostic links. The content of a page may evolve as the ideal set of codes is narrowed down; the code and its abstract meaning do not.
Each page describes the condition in the abstract. The specifics of a particular occurrence (which token, which literal, which type) are carried in the diagnostic's verbose detail, not in the code.
Published codes
Syntax errors
| Code | Title | Condition |
|---|---|---|
| VBC00001 | Syntax error | A token the grammar cannot place |
| VBC00042 | Numeric literal overflow | A literal outside the range of its type |
| VBC00043 | Next without For | A Next statement ends no For loop |
| VBC00044 | For without Next | A For loop is not ended before its procedure is |
| VBC00045 | Loop without Do | A Loop statement ends no Do loop |
| VBC00046 | Do without Loop | A Do loop is not ended before its procedure is |
| VBC00047 | End If without block If | An End If statement ends no block If |
| VBC00048 | Block If without End If | A block If is not ended before its procedure is |
| VBC00049 | Else without If | An Else statement belongs to no block If |
| VBC00050 | Case without Select Case | A Case clause belongs to no Select Case statement |
| VBC00051 | Select Case without End Select | A Select Case statement is not ended before its procedure is |
| VBC00052 | End With without With | An End With statement ends no With block |
| VBC00053 | Expected End With | A With block is not ended before its procedure is |
| VBC00054 | Invalid outside procedure | A statement that runs is written in the declarations section of a module |
| VBC00055 | Only comments may appear after End Sub, End Function, or End Property | A declaration or a statement is written after the first procedure of a module |
| VBC00056 | An #ElseIf, #Else, or #EndIf must be preceded by an #If clause | A #End If ends no #If block |
| VBC00057 | An #Else clause must be preceded by an #If | A #Else belongs to no block, or is the second of its block |
| VBC00058 | An #ElseIf must be preceded by an #If or #ElseIf and followed by an #Else or #EndIf | A #ElseIf belongs to no block, or comes after its #Else |
| VBC00059 | You must terminate the #If block with an #EndIf | A #If block is not ended |
| VBC00060 | Expression nested too deeply | An expression is nested in more than 2,500 others |
| VBC00061 | Output items not separated | Two things to print are written side by side, with nothing between them |
Semantic compilation errors
| Code | Title | Condition |
|---|---|---|
| VBC09301 | Ambiguous name detected | An identifier names more than one declaration at one level of scope |
| VBC09302 | Variable not defined | A name is used that no declaration defines, under Option Explicit |
| VBC09303 | Duplicate declaration in current scope | A name is declared more than once at one level of scope |
| VBC09304 | Invalid use of object | An object is used where a value of another kind is required |
| VBC09305 | Invalid ParamArray use | A ParamArray passed to a ByRef parameter of your own code |
| VBC09306 | Invalid ReDim | A ReDim re-dimensions a member of an object declared As Object |
| VBC09307 | Expected array | LBound or UBound is asked the bounds of a variable that can never hold an array |
| VBC09309 | Label not defined | A jump names a line label or line number the procedure does not define |
| VBC09310 | Type mismatch | A value is of a type that cannot be let-coerced to the type it is used as |
| VBC09311 | User-defined type not defined | A declared type is a name that does not resolve to a type |
| VBC09312 | Exit Do not within Do...Loop | An Exit Do that is not inside a Do loop |
| VBC09313 | Exit For not within For...Next | An Exit For that is not inside a For or For Each loop |
| VBC09314 | Exit Function not allowed in Sub or Property | An Exit Function in a Sub, or a Property Let or Set |
| VBC09315 | Exit Property not allowed in Sub or Function | An Exit Property in a Sub or a Function |
| VBC09316 | Method or data member not found | A member is accessed on a type known not to have it |
| VBC09317 | Invalid use of Me | Me is written where there is no object it could be |
| VBC09318 | With expression outside With block | A leading-dot member has no enclosing With block |
| VBC09319 | Duplicate label definition | A procedure defines the same line label or line number more than once |
| VBC09320 | Inconsistent property accessors | A property's Get/Let/Set do not together describe one valid property |
| VBC09321 | Argument required for Property Let or Property Set | A Let/Set declares no parameters at all |
| VBC09322 | Event not defined | A RaiseEvent names an event the class module does not declare |
| VBC09323 | Wrong number of arguments or invalid argument for event | A RaiseEvent's arguments do not match the event's parameters |
| VBC09324 | Invalid type for WithEvents variable | Not a specific class with events, or the class of its own module |
| VBC09325 | Invalid event name | An Event declaration whose name has an underscore |
| VBC09326 | Invalid event handler | A procedure named for an event is not a subroutine with a compatible parameter list |
| VBC09327 | ByVal argument not allowed here | Not raised: a ByVal argument is the error MS-VBA reports (RD-VBAL §5.6.13.1) |
| VBC09328 | Invalid Implements directive | The class itself, a repeat, an underscore in a public member, or overlapping interface prefixes |
| VBC09329 | Object module needs to implement all members of its interface | A public member of the interface has no implemented name declaration |
| VBC09330 | Invalid implemented member | An implemented name declaration of another kind, parameters or type than its member |
| VBC09331 | Sub or Function not defined | A statement or a call the language the code is written in does not have |
| VBC09332 | Exit Sub not allowed in Function or Property | An Exit Sub in a Function or a property |
| VBC09333 | Variable required | An expression that is not a variable is where a statement requires one |
| VBC09334 | Access not valid for the file mode | The Access clause of an Open is not one its For mode allows |
| VBC09335 | Type-declaration character does not match declared data type | A name is written with the character of a type other than the one it was declared as |
| VBC09336 | Private Enum and user defined types cannot be used in public members | A public member is declared with a private Enum, or in a class with a private type |
| VBC09337 | Not allowed as a Public member of an object module | A class exposes a constant, fixed-length string, array, user-defined type or Declare |
| VBC09338 | Cannot define a Public user-defined type within an object module | A class module declares a public Type |
| VBC09339 | Argument not optional | An object whose default member takes an argument is where a value is expected |
| VBC09340 | Expected Function or variable | A subroutine is used where a value is expected |
| VBC09341 | Can't assign to read-only property | A property that can only be read is assigned with Let |
| VBC09342 | Wrong number of arguments or invalid property assignment | A procedure is called with arguments it does not declare |
| VBC09343 | LSet allowed only on strings and user-defined types | The target of an LSet statement is neither a String nor a user-defined type |
| VBC09344 | RSet allowed only on strings | The target of an RSet statement is not a String |
| VBC09345 | Invalid use of property | A property that can only be read is assigned with Set |
| VBC09346 | Assignment to constant not permitted | A constant is assigned |
| VBC09347 | Object required | A Set statement assigns to a variable that cannot hold an object |
| VBC09348 | Named argument already specified | A call gives the same parameter two arguments |
| VBC09349 | Named argument not found | A call names a parameter the procedure does not declare |
| VBC09350 | Constant expression required | The value of a constant reads something that has no value until the code runs |
| VBC09351 | Invalid data type for constant | The value of a constant is an object |
| VBC09352 | Overflow | The value of a constant does not fit its type |
| VBC09353 | Division by zero | The value of a constant divides by zero |
| VBC09354 | Invalid qualifier | A member is accessed on a value that has no members |
| VBC09355 | Function call on left-hand side of assignment must return Variant or Object | A call of a function is assigned |
| VBC09356 | Wrong number of dimensions | An element of an array is selected by the wrong number of subscripts |
| VBC09357 | Array already dimensioned | An array declared with fixed dimensions is given others |
| VBC09358 | For control variable already in use | A loop is controlled by the variable of a loop it is nested in |
| VBC09359 | Invalid Next control variable reference | A Next statement names a variable that is not the control variable of its loop |
| VBC09360 | Can't assign to array | An array declared with fixed dimensions is assigned an array |
| VBC09361 | ByRef argument type mismatch | A variable is passed to a ByRef parameter of another type |
| VBC09362 | Type mismatch: array or user-defined type expected | A parameter declared as an array is given what is no array of its element type |
| VBC09363 | Expected variable or procedure, not module | The name of a standard module is used by itself, as a value or a procedure |
| VBC09364 | Expected Sub, Function, or Property | A call statement names a variable or a constant of the procedure, not a procedure |
| VBC09365 | Range has no values | An array is declared with an upper bound less than its lower bound |
| VBC09366 | A module is not a valid type | A declaration is typed with the name of a standard module |
| VBC09367 | Invalid use of AddressOf operator | An AddressOf expression names a method of a class module, or of an object |
| VBC09368 | Invalid use of New keyword | A variable is declared As New of a type that is no class, of a library's class that cannot be created, or WithEvents |
| VBC09369 | Can't change data types of array elements | A ReDim gives an array elements of another type than it is declared with |
| VBC09370 | Expected procedure, not variable | A call statement names a variable or a constant of a module, not a procedure |
| VBC09371 | Array argument must be ByRef | An argument of an array parameter is written ByVal |
| VBC09372 | Member already exists in an object module from which this object module derives | The code of a form declares something with the name of one of its controls |
| VBC09373 | Automation type not supported in Visual Basic | A type is written with the name of a library's module, Strings |
| VBC09374 | Expected user-defined type, not project | A type is written with the name of a project or a library, VBA |
| VBC09375 | Invalid length for fixed-length string | A String * n is declared with a length under 1 or past 65526 |
| VBC09376 | Expected variable or procedure, not project | A project, VBA, is written where a value is |
| VBC09377 | Expected variable or procedure, not enum type | An enumeration, Color, is written where a value is |
| VBC09378 | With object must be user-defined type, Object, or Variant | A With block is about a value that has no members |
| VBC09379 | For Each may only iterate over a collection object or an array | A For Each loop iterates a value that has no elements |
| VBC09380 | Out of memory | A module declares more than 10,000 names at module level, or a fixed-size array of more elements than RD-VBA holds |
| VBC09381 | User-defined type may not be passed ByVal | A parameter of a record is declared ByVal |
| VBC09382 | Only user-defined types defined in public object modules can be coerced to or from a variant or passed to late-bound functions | A record is given to a Variant |
| VBC09383 | There is no host application to evaluate the expression | A name in brackets, such as [A1], names nothing that is declared |
Runtime errors
| Code | Title | Condition |
|---|---|---|
| VBR-0001 | Application-defined or object-defined error | An error is raised with a number that has no message of its own, or by a member that cannot answer |
| VBR00003 | Return without GoSub | A Return runs with no GoSub to return to |
| VBR00005 | Invalid procedure call or argument | An argument is outside what a procedure accepts |
| VBR00006 | Overflow | A result does not fit the type it is computed in or assigned to |
| VBR00007 | Out of memory | The session's memory cannot hold an allocation |
| VBR00009 | Subscript out of range | An index is outside the bounds of an array, or a collection has no such item |
| VBR00010 | This array is fixed or temporarily locked | An array that is fixed-size or locked is resized or erased |
| VBR00011 | Division by zero | A divisor is zero |
| VBR00013 | Type mismatch | A value cannot be coerced to the type that is required |
| VBR00014 | Out of string space | A string would be longer than the platform allows |
| VBR00016 | Expression too complex | An expression is nested too deeply to evaluate |
| VBR00017 | Can't perform requested operation | An operation is not possible in the state the session is in |
| VBR00018 | User interrupt occurred | The program is interrupted |
| VBR00020 | Resume without error | A Resume runs with no error to resume from |
| VBR00028 | Out of stack space | The call stack is full |
| VBR00035 | Sub or Function not defined | A call names a procedure that is not defined |
| VBR00047 | Too many DLL application clients | A Declared library has more clients than it supports |
| VBR00048 | Error in loading DLL | A library named by a Declare cannot be loaded |
| VBR00049 | Bad DLL calling convention | A Declared procedure is called with a convention it does not have |
| VBR00051 | Internal error | The interpreter has no implementation for what the program does. This is a gap in the platform, not an error of the program |
| VBR00052 | Bad file name or number | A file number is not valid, or is not open |
| VBR00053 | File not found | A file that is to be read or deleted does not exist |
| VBR00054 | Bad file mode | An operation is not valid for the mode a file was opened in |
| VBR00055 | File already open | A file is already open, or the file number is in use |
| VBR00057 | Device I/O error | The device reported an input or output failure |
| VBR00058 | File already exists | A file that is to be created already exists |
| VBR00059 | Bad record length | A record is not the length the file was opened with |
| VBR00061 | Disk full | There is no room left on the disk |
| VBR00062 | Input past end of file | A read goes past the end of the file |
| VBR00063 | Bad record number | A record number is not valid |
| VBR00067 | Too many files | There are no file numbers left |
| VBR00068 | Device unavailable | The device is not available |
| VBR00070 | Permission denied | Access to a file or record is refused |
| VBR00071 | Disk not ready | The drive is not ready |
| VBR00074 | Can't rename with different drive | A file is renamed onto a different drive |
| VBR00075 | Path/File access error | A path or file cannot be accessed as asked |
| VBR00076 | Path not found | A path does not exist |
| VBR00091 | Object variable or With block variable not set | An object is used that is not set to anything |
| VBR00092 | For loop not initialized | A loop is run from the middle, or a For Each array was never dimensioned |
| VBR00093 | Invalid pattern string | A Like pattern is not valid |
| VBR00094 | Invalid use of Null | Null is used where it is not allowed. |
| VBR00096 | Unable to sink events of object because the object is already firing events to the maximum number of event receivers that it supports | An object fires events to more receivers than it supports |
| VBR00097 | Can not call friend function on object which is not an instance of defining class | A Friend member is called on an object that is not an instance of the class that defines it |
| VBR00098 | A property or method call cannot include a reference to a private object, either as an argument or as a return value | A public call includes a reference to a private object |
| VBR00321 | Invalid file format | A file's format is not valid |
| VBR00322 | Can't create necessary temporary file | A temporary file the operation needs cannot be created |
| VBR00325 | Invalid format in resource file | A resource file's format is not valid |
| VBR00361 | Can't load or unload this object | Load or Unload is given an object that is no form |
| VBR00380 | Invalid property value | A property is given a value it does not accept |
| VBR00381 | Invalid property array index | A property array index is not valid |
| VBR00382 | Set not supported at runtime | A property cannot be set at run time |
| VBR00383 | Set not supported (read-only property) | A property is read-only |
| VBR00385 | Need property array index | A property array needs an index |
| VBR00387 | Set not permitted | Setting this property is not permitted |
| VBR00393 | Get not supported at runtime | A property cannot be read at run time |
| VBR00394 | Get not supported (write-only property) | A property is write-only |
| VBR00422 | Property not found | A property is not found |
| VBR00423 | Property or method not found | A property or method is not found |
| VBR00424 | Object required | An object is required where a value is given |
| VBR00429 | ActiveX component can't create object | An ActiveX component cannot create the object |
| VBR00430 | Class does not support Automation or does not support expected interface | A class does not support Automation or the interface expected |
| VBR00432 | File name or class name not found during Automation operation | A file or class name is not found during an Automation operation |
| VBR00438 | Object doesn't support this property or method | An object does not have the property or method |
| VBR00440 | Automation error | An Automation operation failed |
| VBR00442 | Connection to type library or object library for remote process has been lost. Press OK for dialog to remove reference. | The connection to a type library or object library is lost |
| VBR00443 | Automation object does not have a default value | An Automation object has no default value |
| VBR00444 | Method not applicable in this context | A form's Controls.Remove is given a control its designer declared |
| VBR00445 | Object doesn't support this action | An object does not support the action |
| VBR00446 | Object doesn't support named arguments | An object does not support named arguments |
| VBR00447 | Object doesn't support current locale setting | An object does not support the current locale setting |
| VBR00448 | Named argument not found | A named argument is not found |
| VBR00449 | Argument not optional | A required argument is not given |
| VBR00450 | Wrong number of arguments or invalid property assignment | The number of arguments is wrong, or a property assignment is invalid |
| VBR00451 | Property let procedure not defined and property get procedure did not return an object | A Property Let is not defined and the Property Get did not return an object |
| VBR00452 | Invalid ordinal | An ordinal is not valid |
| VBR00453 | Specified DLL function not found | A function named by a Declare is not found in the library |
| VBR00454 | Code resource not found | A code resource is not found |
| VBR00455 | Code resource lock error | A code resource cannot be locked |
| VBR00457 | This key is already associated with an element of this collection | A key is already used by an element of the collection |
| VBR00458 | Variable uses an Automation type not supported in Visual Basic | A variable uses an Automation type that Visual Basic does not support |
| VBR00459 | Object or class does not support the set of events. | An object or class does not support the set of events |
| VBR00460 | Invalid clipboard format | A clipboard format is not valid |
| VBR00461 | Method or data member not found | A method or data member is not found |
| VBR00462 | The remote machine does not exist or is unavailable | The remote server machine does not exist or is unavailable |
| VBR00463 | Class not registered on local machine | A class is not registered on the local machine |
| VBR00481 | Invalid picture | A picture is not valid |
| VBR00482 | Printer error | A printer error occurred |
| VBR00735 | Can't save file to TEMP | A file cannot be saved to the temporary directory |
| VBR00744 | Search text not found | The text searched for is not found |
| VBR00746 | Replacements too long | The replacement text is too long |
| VBR50001 | Nobody to answer | A program run unattended opens a dialog, or the client that shows its dialogs declines one (untrappable; RD-VBA's own run-time errors are VBR50000-50999) |
| VBR50002 | Unusable dialog answer | The client that shows a program's dialogs answers one with what it can't be answered with, or can't be reached (untrappable) |
Rubberduck Core diagnostics
| Code | Title | Condition |
|---|---|---|
| RDC00101 | Implicit declarations enabled | A module that does not state Option Explicit |
| RDC00102 | Implicit non-default array base | A module that states Option Base 1 |
| RDC00103 | Implicit type declarations enabled | A Def<Type> directive |
| RDC00104 | Implicit ByRef modifier | A parameter that states neither ByRef nor ByVal |
| RDC00105 | Implicit Public member | A member that states no access modifier |
| RDC00106 | Implicit Variant declaration | A variable or parameter declared without a type |
| RDC00107 | Implicit Variant return type | A function declared without a return type |
| RDC00112 | Implicit narrowing conversion | A value converted implicitly into a type that holds less of it |
| RDC00114 | Implicit array declaration | A ReDim that declares the array it re-dimensions |
| RDC00115 | Implicit result local | A function that reads its own return value, as the local variable it implicitly is |
| RDC00116 | Implicit For step | A For loop that states no Step, under the convention that writes Step 1 |
| RDC00117 | Implicit constant type | A constant with no As clause and no type character |
| RDC00119 | Implicit default member access | An object of a known class used as a value, or assigned one without Set, through a default member the code does not name |
| RDC00120 | Implicit unbound default member access | An Object used as a value, or assigned one without Set: its default member is known only at run time |
| RDC00121 | Indexed default member access | An argument list given to an object of a known class, which its default member takes |
| RDC00122 | Indexed unbound default member access | An argument list given to an Object: its default member is known only at run time |
| RDC00123 | Bang notation | b!key: a name given as a String to the default member |
| RDC00124 | Unbound bang notation | v!key of an Object: its default member is known only at run time |
| RDC00125 | Suspicious Let assignment | An object assigned to an object without Set |
| RDC00201 | Integer data type declaration | An As Integer clause or a % type character |
| RDC00202 | Module-scope Dim declaration | A module-level variable declared with Dim |
| RDC00203 | Multiline parameter declaration | One parameter declared over several lines |
| RDC00204 | Multiple declarations | A statement that declares several names |
| RDC00205 | Misleading ByRef parameter | ByRef on the value parameter of a property Let or Set |
| RDC00206 | Not all code paths return a value | A function or property getter with a code path that does not assign its return value |
| RDC00207 | IsMissing that is always False | IsMissing of a parameter that is not a Variant, or an Optional Variant with a default value |
| RDC00208 | Shadowed declaration | A local or a parameter named like a member of the module, of another module, or of a library |
| RDC00209 | Boolean assigned in If…Else | An If…Else that assigns True in one branch and False in the other to the same variable |
| RDC00210 | Stop statement | A Stop statement |
| RDC00211 | On Error GoTo -1 | An On Error GoTo -1 statement |
| RDC00212 | Unrestored On Error Resume Next | An On Error Resume Next that no On Error GoTo follows in its procedure |
| RDC00213 | Line continuation between keywords | A keyword of two words, such as End If, split over several lines |
| RDC00214 | Procedure can be written as a function | A Sub that gives its result back through its only ByRef parameter |
| RDC00215 | Self-assigned declaration | A variable declared As New |
| RDC00216 | Function result discarded | A Function of the project called as a statement |
| RDC00218 | IsMissing of a Variant that is not Optional | IsMissing of a required Variant parameter, or of a Variant variable |
| RDC00302 | Obsolete Call statement | A call statement written with the Call keyword |
| RDC00303 | Obsolete comment syntax | A comment written with the Rem keyword |
| RDC00304 | Obsolete error syntax | An Error statement |
| RDC00305 | Obsolete Global modifier | A declaration with the Global modifier |
| RDC00306 | Obsolete Let statement | An assignment written with the Let keyword |
| RDC00307 | Obsolete type hint | A name written with a type-declaration character |
| RDC00308 | Obsolete While…Wend | A loop written While…Wend |
| RDC00309 | Obsolete On Local Error statement | An error handler set with On Local Error |
| RDC00310 | Redundant ByVal argument | An argument written ByVal for a parameter that is ByVal already |
| RDC00311 | Early binding opportunity | CreateObject of a class that a referenced library declares |
| RDC00312 | Empty string literal | The literal "", where vbNullString says the same by name |
| RDC00313 | Redundant Step 1 | A For loop that states Step 1 |
| RDC00314 | Redundant ByRef modifier | A parameter that states ByRef, under the convention that leaves it unwritten |
| RDC00315 | Redundant module option | A module that states Option Base 0 or Option Compare Binary |
| RDC00405 | Implementations should be private | A Public implementation of an interface member or handler of an event |
| RDC00407 | Unmatched event handler | A handler of a form control's event that does not match the event, and that nothing calls |
| RDC00408 | Underscore in a public class member | A public member of a class module with an underscore in its name |
| RDC00409 | Public field | A Public variable of a class module |
| RDC00410 | Default instance in its own class | The code of a predeclared class naming its own default instance |
| RDC00411 | Code in a class implemented as an interface | A class that another class implements, with a statement in a member |
| RDC01001 | Use meaningful identifier names | A name too short, ending with a digit, or without a vowel |
| RDC01002 | Hungarian notation | A name that begins with a prefix that states its type |
| RDC01003 | Empty If block | An If or ElseIf branch with no statement |
| RDC01004 | Empty code block | An Else, Case, Do, For, For Each or While block with no statement |
| RDC01005 | Hosted document code | The code of an Excel, Word or Access document, which RD-VBA does not host: move it into a class that automates the application |
| RDC01006 | Unsupported document module | A document of a host RD-VBA does not know, or a .doccls the project says nothing of |
| RDC01007 | Host library not referenced | A document module whose host's library the project does not reference |
| RDC01009 | Empty procedure | A procedure with no statement |
| RDC01010 | Empty module | A module that declares nothing |
| RDC11005 | Bitwise operator | A logical operator given numbers, which works on their bits |
| RDC11006 | Ambiguous concatenation | Two String values joined with + |
| RDC11011 | Variant number compared with a Variant String | The number is less, whatever the values |
| RDC11012 | Set of a call that always fails | A function whose default member has no Property Set, as the target of a Set |
| RDC11013 | Variant compared with a String as text | MS-VBA compares their text, where MS-VBAL specifies a type mismatch |
| RDC11014 | Case Is compared in the selector's type | MS-VBA converts the value first, where MS-VBAL states the comparison as an expression |
| RDC11015 | Object with no default member used as a value | MS-VBA raises 438 (91 for Nothing), where MS-VBAL specifies a compile error |
| RDC11016 | Empty or Null assigned to an array | Compiles, and raises a type mismatch whenever it runs |
| RDC11017 | Like pattern MS-VBA matches otherwise than specified | A [], a [!], or an invalid list |
| RDC11018 | Integer arithmetic of Abs, Int or Fix that can overflow | MS-VBA types the call as its argument, where MS-VBAL declares a Variant |
| RDC11019 | Type character ignored on a function of the library | Len$, CVar$: MS-VBAL makes the name invalid, MS-VBA ignores the character |
| RDC11020 | Variant String that is no number, compared with a number | MS-VBA ranks the String above it, where MS-VBAL specifies a type mismatch |
| RDC11021 | Constant of a procedure valued with Len | MS-VBA accepts it there, and refuses it in a module |
| RDC11022 | ReDim of a variable declared implicitly | The specification and VB6 re-dimension it, MS-VBA refuses it (Invalid ReDim) |
| RDC11023 | Procedure MS-VBA refuses as too large | More than 5,000 statements, which RD-VBA runs and MS-VBA refuses (Procedure too large) |
| RDC11024 | Implements in a document module | MS-VBAL forbids it in an extension module, MS-VBA compiles it |
| RDC11025 | Array given a second empty argument list | f()(), which MS-VBAL makes invalid, MS-VBA compiles and fails with 9 when it runs |
| RDC11026 | Public variable of an object passed ByRef as a copy | MS-VBAL passes the variable, MS-VBA a copy |
| RDC11027 | String compared with a number as a Double | MS-VBA compares the two as Doubles, where MS-VBAL compares them in the number's type |
| RDC11028 | New of a class that is never created | New ErrObject compiles, and fails with -2147221164 when it runs |
| RDC11029 | Public variable of an object passed late as a copy | What a procedure called late assigns to it is not written back |
| RDC11031 | True value that is not -1 | #Const DEV = 1, then #If Not DEV: Not 1 is -2, which is True |
| RDC11032 | For Each variable read after the loop ran out | MS-VBA leaves it Empty or Nothing, where MS-VBAL says it keeps the last element |
| RDC11033 | Reserved name that MS-VBA accepts | An Enum member named Date, DoEvents or CDec: MS-VBA compiles it, MS-VBAL reserves the name |
| RDC11034 | Name that MS-VBA refuses | A declaration named Local, or an Enum member named Name: MS-VBAL allows the name, MS-VBA refuses it |
| RDC11035 | Collection set to Nothing inside its own For Each loop | RD-VBA leaves it as it is while the loop runs; MS-VBA destroys it, and the loop ends |
| RDC11036 | Negative line number | A line number below 0, or a jump to one: MS-VBA compiles it, MS-VBAL has no such line number |
| RDC11037 | Non-breaking space in a name | A declared name with a U+00A0 in it: MS-VBA compiles it, no MS-VBAL identifier has one |
| RDC11039 | Function called whatever the IIf condition | A Function or Property Get in the TruePart or FalsePart of IIf, which runs whatever the condition |
| RDC11040 | Str of a number between -1 and 1 | MS-VBA writes no zero before the decimal point, where MS-VBAL writes one |
| RDC11041 | Str of an Error value | MS-VBA raises a type mismatch, where MS-VBAL returns the text of the error |
| RDC11042 | Write # of a number between -1 and 1 | MS-VBA writes no zero before the decimal point, where MS-VBAL writes one |
| RDC11043 | Object assigned with Let to a Variant property | An object given to a property whose value parameter is a Variant: MS-VBA passes the object, MS-VBAL its default member's value |
| RDC11044 | LSet of a record that holds a variable-length String | MS-VBAL allows it, and MS-VBA refuses it with a type mismatch |
| RDC11045 | Let through a default member with no Property Let | total = 5 compiles in RD-VBA, where MS-VBA refuses it |
| RDC11046 | Let through a Variant property or function | RD-VBA assigns the returned object's default member, as MS-VBA does, where MS-VBAL raises 451 or 450 |
| RDC11047 | Object assigned with Let to an object property | An object given with Let to a property whose value parameter is a class or Object: MS-VBA passes the object, MS-VBAL makes it a type mismatch |
| RDC20001 | Edit not applied to the waiting program | Made while it waits in the debugger, which can't go on with it |
| RDC30001 | No entry point | rdc run or rdc build of a workspace with no Sub Main, an entry point the .rdproj names that nothing declares, or a library |
| RDC30002 | More than one entry point | rdc run or rdc build of a workspace where more than one standard module declares a Sub Main, and the .rdproj names none |
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca