S Smee Well-Known Member Licensed User Longtime User Oct 24, 2011 #1 I have the following code to perform various actions based on the button pressed Sub ButtonPress_Click Dim Qty As Int Dim BtnVal As Int Dim btn As Button ' use to find which button sent us here btn = Sender ' this sent us here BtnVal=btn.Tag .. .. .. btn.Text="Something Else" End sub Click to expand... Is there a way to access the buttons properties once outside of this sub or should i dim the Btn etc in the globals section? TIA Joe
I have the following code to perform various actions based on the button pressed Sub ButtonPress_Click Dim Qty As Int Dim BtnVal As Int Dim btn As Button ' use to find which button sent us here btn = Sender ' this sent us here BtnVal=btn.Tag .. .. .. btn.Text="Something Else" End sub Click to expand... Is there a way to access the buttons properties once outside of this sub or should i dim the Btn etc in the globals section? TIA Joe
klaus Expert Licensed User Longtime User Oct 24, 2011 #2 You can dim the button in the Global subroutine. You can also transmit the button object to a subroutine. Best regards. Upvote 0
You can dim the button in the Global subroutine. You can also transmit the button object to a subroutine. Best regards.