Jump to content

Recommended Posts

Posted (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 by RhinoCZ

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...