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 that you will have name conflicts when you
use inheritance to create windows.
To change a control’s name
-
Select the control to display the control’s properties in
the Properties view. -
On the General tab 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 PowerBuilder identifier with up to 255
characters. For information about PowerBuilder identifiers, see the section called “Identifier names” in PowerScript Reference.