I have a large number of textboxes and labels on a form
So for example I have Label1 with caption 500 and beside it a text box (T5001) to enter an amount
What I need to do is find a way to loop thru all the textboxes and see if I can divide by the caption or the string in the text box name
So in this case I would have Textbox (T5001) and the number would have to be divisble by 500
Textbox (T2001) would have to be divisible by 200 etc
Is this possible as cant get my head around it
So for example I have Label1 with caption 500 and beside it a text box (T5001) to enter an amount
What I need to do is find a way to loop thru all the textboxes and see if I can divide by the caption or the string in the text box name
So in this case I would have Textbox (T5001) and the number would have to be divisble by 500
Textbox (T2001) would have to be divisible by 200 etc
Is this possible as cant get my head around it