IDEInspector - how to know if cVarName is in use?

Xailer professional forum in English
Responder
Avatar de Usuario
Hurricane
Mensajes: 262
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

IDEInspector - how to know if cVarName is in use?

Mensaje 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,
Developments | Trainings | Projects
Site | E-mail | Messenger | YouTube
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5707
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

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

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder