4D provides a handy shortcut for automatically incrementing a group of variables that has been created in a form. This shortcut can be used, for example, to reorganize the variables for the buttons of a form or to make sure that each form variable is unique. Keep in mind that this function only modifies the names of variables associated with objects, not the names of the objects themselves.
To automatically increment a set of variables:
- Select each active object whose variable needs to be renumbered.
You can select any kind of active object.
![](../../picture/367339/pict367339.fr.png)
- Under Windows, Ctrl+Alt+click on one of the objects.
Under Mac OS, Command+Option+click on one of the objects.
The following dialog box appears:
![](../../picture/367341/pict367341.en.png)
Note: This dialog box will not appear if the selection contains an object that is not active or a field. - Set the start number and the increment to be applied.
- Click on OK.
The variables of the selected objects are immediately renumbered using the parameters set. The numbers are added to the end of the current variable names. Renumbering is carried out from left to right and top to bottom.
![](../../picture/367343/pict367343.fr.png)