To set Option Explicit in the IDE
In Solution Explorer, select a project. On the Project menu, click Properties.

Click the Compile tab.

Set the value in the Option Explicit box.

When you create a new project, the Option Explicit setting on the Compile tab is
set to the Option Explicit setting in the VB Defaults dialog box. To access the
VB Defaults dialog box, on the Tools menu, click Options. In the Options dialog
box, expand Projects and Solutions, and then click VB Defaults. The initial
default setting in VB Defaults is On.

To set Option Explicit on the command
line:https://docsbay.net/option-explicit-statement-visual-basic

-- 
<https://forum.pspad.com/read.php?2,71708,71809>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem