Fandom

Wikianswers

Welcome! Enter your question below. Please use words like "Who, What, Where, When, Why, How, etc..." in your question. Nothing to ask? Click here for a random, un-answered question.

How does one define variables in Visual Basic.NET?

1,033,400questions on
Wikianswers
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

One defines variables in Visual Basic.NET as follows, replacing the "name" and "type."

Dim name As type

You can also insert the value, such as in the following, also replacing "value."

Dim name As type = value

An example follows.

Dim theAnswertoLifetheUniverseandEverything As Integer = 42

Also on Fandom

Random Wiki