Sthafrican
New member
- Joined
- May 25, 2005
- Messages
- 4
- Programming Experience
- Beginner
Hi..i am curious to know and will help me out simplifying my code
Is it possible to execute the code of another object/action(ex:button1_click) when performing the code of current object/action(ex:button2_click).
In other words
button1_click(....)
label1.enable=true : label2.enable=true : label3.enable=true
End sub
button2_click(....)
textbox1.clear()
'this part is the same code as the button1_click
label1.enable=true : label2.enable=true : label3.enable=true
End sub
...............................
A function would work..but its too much work
thanks
Is it possible to execute the code of another object/action(ex:button1_click) when performing the code of current object/action(ex:button2_click).
In other words
button1_click(....)
label1.enable=true : label2.enable=true : label3.enable=true
End sub
button2_click(....)
textbox1.clear()
'this part is the same code as the button1_click
label1.enable=true : label2.enable=true : label3.enable=true
End sub
...............................
A function would work..but its too much work
thanks
Last edited: