Posted 28 Feb 2019 Hello, In sysmac studio, for a NA hmi, is there a way to access a button in Visual basic from a global subroutine ? I always get this when i compile : error BC30456: 'MyPage' is not a member of 'My_NA_HMI'. the code is : My_NA_HMI.MyPage.myButton.IsEnabled = True Regards, Share this post Link to post Share on other sites
Posted 25 Mar 2019 From what I know, global subroutines do not interact with page components. So I would just assign a global variable to the button variable property you need to enable and set it to True directly with the global variable. Share this post Link to post Share on other sites
Posted 27 Mar 2019 I finally moved my global subroutines locally to the concerned pages. and used global variables to enable the ones I need. Thank you. Share this post Link to post Share on other sites