Is there anyway of referencing a control i.e. CurrForm.Controls[1].Visible : True
Hello, If you change the default name of a control, then you can access it by: CurrForm.Controls.<control name>.visible := FALSE;
The controls with the default creation name are not shown in the list. Look it up at the C/Al Symbol Menu.
Sorry, I don’t want to reference the control explicitly. I need loop through the controls and see whether it exists or not i.e. if CurrForm.Controls[1].Name = ‘Test Control’ then begin … … … end;
No, sorry, you can’t do that.
Feared as much. Thanks
The only thing I can thing as similar is using RecordRef and FieldRef, but it is for records, not forms. Maybe it would be of use to you…