---
title: "How you define Option Explicit in VBScript?"  
description: "How you define Option Explicit in VBScript?"  
author: "Anonymous User"  
published: 2011-11-04  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/1336/how-you-define-option-explicit-in-vbscript  
category: "vb script"  
tags: ["vb script"]  
reading_time: 1 minute  

---

# How you define Option Explicit in VBScript?

If you want to use Option Explicit in VBScript you should have to declare all variables using the Dim, Private, Public, or ReDim statements.\
Using Option Explicit to avoid incorrect typing the name of an existing variable or to avoid confusion in code where the scope of the variable is undefined.

## Answers

### Answer by Anonymous User

If you want to use Option Explicit in VBScript you should have to declare all variables using the Dim, Private, Public, or ReDim statements.\
Using Option Explicit to avoid incorrect typing the name of an existing variable or to avoid confusion in code where the scope of the variable is undefined.


---

Original Source: https://www.mindstick.com/interview/1336/how-you-define-option-explicit-in-vbscript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
