Changing the name

You should change the default suffix to a suffix that is meaningful in your application. For example, if you have command buttons that update and retrieve database information, you might call them cb_update and cb_retrieve. If you have many controls on a window, using intuitive names makes it easier for you and others to write and understand scripts for these controls.

Using application-based names instead of sequential numbers also minimizes the likelihood of name conflicts when you use inheritance to create windows.

StepsTo change a control's name:

  1. Select the control in the Layout view or in the Control List view; this displays the control’s properties in the Properties view.

  2. On the General properties page, select the application-specific suffix (for example, the 1 in the cb_1 command button name) and type a more meaningful one.

    You can use any valid identifier of up to 40 characters. For information, see “identifier names” in the online Help.