Microsoft KB Archive/191206

= PRB: Compiler Error Overriding VBA Conversion Functions =

Article ID: 191206

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q191206



SYMPTOMS
You might receive the following Visual Basic Compiler Error Message when you try to override a VBA Conversion function such as Cdate:

Expected Identifier



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  Create the following function in Visual Basic: Public Function CDate(vExp) as Date MsgBox "Won't Compile" End Function  Select "Start With Full Compile" from the Run menu.

RESULTS: The compile error "Expected: Identifier" appears. In Visual Basic 6.0, you can override the CVDate function.

Keywords: kberrmsg kbprb kbcompiler KB191206

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.