---
title: "Variable declaration in vb.net?"  
description: "Variable declaration in vb.net?"  
author: "Dependra Pathak"  
published: 2011-03-29  
updated: 2011-03-29  
canonical: https://www.mindstick.com/forum/209/variable-declaration-in-vb-dot-net  
category: "vb script"  
tags: ["vb script"]  
reading_time: 1 minute  

---

# Variable declaration in vb.net?

I am new [VB.Net](https://www.mindstick.com/forum/426/sqlsever-2000-in-network-with-vb-dot-net-2008).\
how we defined the [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation) in VB.Net?

## Replies

### Reply by Amit Singh

hi dependra,\
we define the variable in vb.net\
using dim keyword\
\
**for example**\
dim name as String="dependra"


---

Original Source: https://www.mindstick.com/forum/209/variable-declaration-in-vb-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
