Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Makelist Class vars

  • Makelist Class vars

    Posted by Martin FF on January 13, 2026 at 4:21 pm

    Hello everyone,

    I’m trying to create a list of class variables as follows:

    $root.$libs.MYLIB.$windows.MYWINDOW.$cvars.$makelist($ref.$name, $ref)

    This is for a migration from Omnis Studio 8 to 11.x, where I still have to write the code in version 8.

    Does anyone know why this does not return a list? I only need the names of the class vars.

    Thanks in advance.

    Regards,

    Martin

    • This discussion was modified 1 week, 5 days ago by  Martin FF.
    • This discussion was modified 1 week, 5 days ago by  Martin FF.
    Andreas Pfeiffer replied 1 week, 4 days ago 2 Members · 3 Replies
  • 3 Replies
  • Andreas Pfeiffer

    Administrator
    January 14, 2026 at 8:49 am

    Hello Martin,

    I can see two issues here.

    1. When using a reference across libraries you would need to ensure that the class in the target library can be found from the service library. You can achieve this either setting the $external property of the class in question or – and I think this is what the service library might want to have – set the $ignoreexternal property of the service library to kTrue.

    2. You actually want to have the $cvardefs rather $cvars. That group contains the definition of the class variables.

    Hope this helps.

    Best,

    Andreas

  • Martin FF

    Member
    January 14, 2026 at 11:54 am

    As always you’re the hero.

    $cvardefs did the job.

    Thyank you

    • Andreas Pfeiffer

      Administrator
      January 14, 2026 at 2:23 pm

      Hi Martin,

      I am glad it helped!

      Have a nice day 🙂

      Best,

      Andreas

Log in to reply.