Hi,
I am using arrays when creating Labels on a form. So all the labels in a form will have the name of lblMyLabel.
Now I need to loop through all the controls on the current forms and check their caption. The problem I am finding is that whilst the actual loop goes through all the controls, it would not extract the captions of lblMyLabel since it will be 'asking' for lblMyLabel.caption which in actual fact does not exists.
Does anyone know how I can go about it? I am trying to keep the function is generic as possible, sincxe it has to be used by all the forms in the application.
Many thanks in advance.
I am using arrays when creating Labels on a form. So all the labels in a form will have the name of lblMyLabel.
Now I need to loop through all the controls on the current forms and check their caption. The problem I am finding is that whilst the actual loop goes through all the controls, it would not extract the captions of lblMyLabel since it will be 'asking' for lblMyLabel.caption which in actual fact does not exists.
Does anyone know how I can go about it? I am trying to keep the function is generic as possible, sincxe it has to be used by all the forms in the application.
Many thanks in advance.