I am writing a procedure (D3) which goes through each form in the program, saves information about the form to a database, and then goes through each of its components. (this is working)
If the component is a TControl, then I save some information about it to a database. (this is working)
I then want to see if the component has any child components, check if each of them is a TControl and if so, save some of their information to the database. I want to do this recursively to capture information about each component in the whole program. (this is not working)
It seems to me that the second routine should be recursive so that it can call itself. I have read what little there is in the Help about making a procedure recursive by using forward declarations but it is not clear to me what to do, or where to put it. Can anyone help?