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.