Other scripts

Read-only scripts Scripts that have been automatically generated are marked as read-only. These scripts are usually associated with design-time controls (DTCs) and are part of the METADATA information for the control. You can view them but not change them in the Script editor.

If you change the script in Source view and later cause the DTC to regenerate its output, the script is rewritten and your changes are lost.

NoteStatic output for design-time controls In some cases, you might want to insert generated scripts for a DTC without the control itself. If you choose Insert>Component>ActiveX from the menu bar and select the Generate Static Output check box (on the Design-time tab), you will get the scripts produced by the DTC but not the METADATA comments or <OBJECT> element. You can then modify this static output without accidentally re-executing the DTC and overwriting your modifications.