VB6 Module Public Var Xojo Equiv

  1. last week

    Stephen P

    Sep 9 Pre-Release Testers, Xojo Pro
    Edited last week

    Hi,

    Perhaps a simple question but I am porting a small app from VB6 to Xojo. The VB6 app has a module with some public variables declared. I used the Xojo VB6 migration tool and have worked through including setting up those variables as Public scope Xojo module properties. When I try to access them from a form:

    '// Set the # of equations to # of unknowns
    modMatrix.Eq = c

    I get a 'This item does not exist error'. I have a sneaking suspicion that I'm overlooking something very basic :-)

    Thanks in advance,
    Steve

    EDIT: modMatrix is the name of the Xojo module. Intellisense shows that Eq is a property of the module.

  2. Dave S

    Sep 9 San Diego, California USA

    and what is the SCOPE of "EG"? global? private?

  3. Stephen P

    Sep 9 Pre-Release Testers, Xojo Pro

    Public. I think your question has nade me realise that the Xojo converter changed a VB6 module to a class as there are Super and Interface properties on it.

    Away from desk atm but that seems plain confusing to change the type.

    Steve

  4. Norman P

    Sep 9 Pre-Release Testers, Xojo Pro great-white-software.com/blog

    The converter doesnt do a great job FWIW

or Sign Up to reply!