Navigation:  Reference > Form Objects > Common Properties >


Print this Topic Previous pageReturn to chapter overviewNext page


Each object on the form has a Name property.  The object is referred to in your program by this name.  In most cases the name is assigned automatically.  You have the ability to change this for any object.


This property should not be changed during runtime.


NOTE:  In all cases other than in the Form itself, all Events are based on the object name.  For example, if you have a TButton with the name btnOK and you want to call a routine that would be executed when the user clicks on that button the label would be:  However, if you change the object Name after you create the Event routine in the source code you will need to change the label and recompile the program.  In fact, if you find that an Event doesn't fire when you expect it to, make sure the object names are correct.


Page url: