PRB: Setting the Optional Byte Argument Default Value to TRUE Breaks Binary Compatibility (216480)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q216480 SYMPTOMS
Setting the default value of an Optional Byte argument to TRUE causes the following error when the project is compiled with Binary Compatibility:
<procedure> in the <class> class module has arguments and/or a return type that is incompatible with a similar declaration in the
version-compatible component
RESOLUTION
Use 255 instead of TRUE for the default value.
REFERENCES
For additional information about a similar problem with optional String argument default value, please click the article number below to view it in the Microsoft Knowledge Base:
176164 FIX: Optional Argument Default Value Breaks Binary Compatibility
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbBug kbprb KB216480 |
---|
|