locked
Visual basic 6 conversion to VB2013 "Add a delegate for AddressOf" RRS feed

  • Question

  • I have converted a rather large program from Visual Basic 6 to
    VB2013 by first using the conversion package in VB2008.  Below is the code
    and warning I am getting.<o:p></o:p>

    ModuleucString<o:p></o:p>

         FunctionucEqual() AsDouble<o:p></o:p>

              
    ucEqual = System.
    Math.Abs(CInt(ucParamStr(1) = ucParamStr(2)))<o:p></o:p>

         EndFunction<o:p></o:p>

              SubucInitStringRelational()<o:p></o:p>

     <o:p></o:p>

             
    'UPGRADE_WARNING: Add a delegate for AddressOf ucEqual
    <o:p></o:p>

              
    ucDefineFunction(
    "Equal[a$,b$]", AddressOfucEqual)<o:p></o:p>

              EndSub<o:p></o:p>

    EndModule<o:p></o:p>

    I The error I am
    getting is "100 addressof expression can not be converted to integer
    because integer is not a delegate type"<o:p></o:p>

    Any insight would be
    greatly appreciated<o:p></o:p>


    Thursday, January 12, 2017 11:26 AM

All replies