answersLogoWhite

0

What is declaring in Visual Basic?

User Avatar

Anonymous

15y ago
Updated: 8/19/2019

Its basically telling the computer "hey, this is something".

you have to think, computers are actually dumb. they have to be told what to do, when to do it, and how. like a growing child, once you teach it, it'll be able to work efficiently. Just like telling a baby "this is a butter knife", you're telling the computer "this is [insert variable here]"

otherwise the computer will tell you it doesn't know what that is.

In visual basic you would declare a variable by placing "Dim" in front of the variable at the beginning of your code.

Example "Dim intRate as Integer" which is telling the computer "The object i named intRate is an integer"

hope that helps

User Avatar

Wiki User

15y ago

What else can I help you with?