Página 1 de 1

IDEInspector - how to know if cVarName is in use?

Publicado: Lun Jun 06, 2022 2:21 am
por Hurricane
Hi,

I insert a new control on the Form and name it normally.
For more security, how do I know if a given name is in use by some control on the Form?
If it's in use, I leave the name automatically and let you know with a message.

In the documentation it says "oControls has the list of controls", but it doesn't.

regards,

Re: IDEInspector - how to know if cVarName is in use?

Publicado: Lun Jun 06, 2022 5:32 pm
por jfgimenez
it has, but aControls (not oControls) has track of its own contained controls. If you need *all* controls in a form, just use a recursive function to get all them