I have a label that updates after one of several buttons are clicked. After the label is updated I would like to automatically run a function that will clean up the label text. For example if the label is updated to "3.00" I would like to fire a function that reformats it to just "3" or trims " hello " to just "hello".
I know I could do this when the button is clicked but I would have code this into every button push instead of just once after any button updated the field.
I think what you're asking is if there is a function that detects when the Label.Text property has changed, and in short the answer is no. You'll need to determine a work around that suits your needs. Likely one sub that you pass the text to, it "cleans" it up, then sets the label.text property
Thanks Don. I was trying to avoid putting the update label code on each and every button click object. If the label.text update generated some event that I could key on... I would only have to put the update the code there once.
Sorry if my terminology is not B4Aish. I'm used to javascript.
I think what you're asking is if there is a function that detects when the Label.Text property has changed, and in short the answer is no. You'll need to determine a work around that suits your needs. Likely one sub that you pass the text to, it "cleans" it up, then sets the label.text property