answersLogoWhite

0

What are the variables in vb?

Updated: 10/25/2022
User Avatar

Wiki User

14y ago

Best Answer

The variables is visual basic are the items being declared in order to use within the program, for example if you were writing a program for the SUVAT equations the variables would be difined as follows...

Dim is as integer

Dim iu as integer

Dim iV as integer

e.c.t

Think of the Dim to mean declare and the "as integer" is the data type.

If it was a text value (string) for example a name it would be declared as follows:

Dim sname as string

where sname is the variable.

For an array of values

you would do the same but as follows:

dim sname(100) as string

this would create a space so to speak for 101 (0-100) names which would be inputted as so:

sname(0) = Dan

sname(1) = Sarah

e.c.t

hope that helps without being to complicated

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the variables in vb?
Write your answer...
Submit
Still have questions?
magnify glass
imp