RhinoCZ Posted November 10, 2023 Report Posted November 10, 2023 (edited) Hello, sorry if this sounds stupid, I'm new to Sysmac... Please imagine lets say 32 buttons on one HMI page named "Button_01" to "Button_32". I want to have one subroutine that should be called from each button. Please, is there any way to detect which button was just pressed and which is calling subroutine right now? Something like: Sub SelectionMade MyVar = STR_TO_INT( RIGHT(SubCaller.Name, 2) ) End Sub Edited November 10, 2023 by RhinoCZ Quote
pturmel Posted November 10, 2023 Report Posted November 10, 2023 Normally, you would use a function parameter that the caller provides for any necessary context. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.