Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Accessing a library object without using the namespace

2018-08-09
2018-08-17
  • MarcDeOliveira - 2018-08-09

    I created a Codesys library which I included it in my project. The name of the library is "TC". Whenever I need to access an object from this lib, I have to write "TC.object".
    Is there a way to access an object from the lib without using this namespace "TC".

    Thank you

     
  • chris.harlow - 2018-08-10

    In your library project select Project -> Project Information. On the Properties table remove the "LanguageModelAttribute" Value "Qualified Access Only".

    This will allow you to access the object without qualifying the access.

     
    πŸ‘
    1
  • MarcDeOliveira - 2018-08-17

    Thank you, it works

     

Log in to post a comment.