# OnAddColumns

The **OnAddColumns** event is called to allow your [script add-in](../../../scripting/script_add-ins) to [add columns](../../../scripting/example_scripts/adding_a_new_column). Call the [**AddColData**](../scripting_objects/addcoldata)**.AddColumn** method once for each column you wish to add.

| **Method Name:**   | OnAddColumns                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Argument Type:** | [**AddColData**](../scripting_objects/addcoldata)                                                                                                                                                                                                                                                                                                                                                                               |
| **Return Type:**   | _none_                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Description:**   | When Opus starts up, or when a script add-in is added, edited or enabled, its **OnAddColumns** method is called. This allows a script to [add columns](../../../scripting/example_scripts/adding_a_new_column) :scripting:example\_scripts:adding\_a\_new\_internal\_commandto Opus. A script can reinitialize its list of columns at any time by calling the [**Script**](../scripting_objects/script)**.InitColumns** method. |
