Accessing Properties

Smee

Well-Known Member
Licensed User
Longtime User
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

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
 
Top