answersLogoWhite

0

What is DIM statement in BASIC?

Updated: 9/23/2023
User Avatar

Wiki User

11y ago

Best Answer

Declares and allocates storage space for one or more variables.

i.e. Dim A1() As Integer = {0, 1, 2, 3}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is DIM statement in BASIC?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When defining a variable in visual basic what key word appear at the beignning of the statement?

Dim x as integer = 7


Two methods in Visual Basic to store value?

dim value1 as integer dim value2[3] as integer


How do you write BASIC program to accept variables?

dim a input a


What is used of dim x in visual basic?

um what do u think i mean its DIM x oh yh maybe ur dim so u don't get it yh that's right.


What is used to declare variables in Visual Basic?

declaration of variable is dim a as integer


What is difference between basic command and statement?

difference between command and statement


What is the correct coding for converting a string to a double in visual basic 2010?

Dim i as double = CDbl("12")


Which is an example of visual basic objects?

dim a as integer dim b as integer dim c as integer dim d as integer private sub command1_click () a=-1 b=1 d=1 while (d<=10) c=a+b print c a=b b=c next d end sub


How would you write Visual Basic Code to declare an Integer variable called intNumber?

Dim intNumber As Integer


What is function of GOSUB statement in subrouteen?

in BASIC, GOSUB and the RETURN statement allows the use of subrouteens.


Ifthenstatement visual basic 6.0?

Like most languages Visual basic also uses the 'If' keyword to implement the decision control statement. The syntax of 'If' statement is as follow If <condition> Then Statements ........... ............................. End If For Example: Private Sub Form1_click() Dim marks As Integer marks= InputBox("Enter Marks : ") If marks >60 Then MsgBox "First Devision" End If End Sub


Full form of dim in visual basic language?

DIM stands for declaration in memory. the words DIM is used to declare a variable. Yes Correct, I used to declare variable. I think it means Dimension, Dimension Of the memory location The original Basic language did not require or have a type definition. All variables were numeric with no distinction between integer and real/float. Assigning space for a variable was easy, they were all the same type and size. Some Basic implementations, using variable name modification, later added character variables by a dollar sign appended (varname$) and an integer type with a percent sign (varname%) leaving the unsuffixed version as it originally was. You were allowed to have all three versions of a name in play at the same time so Basic still had no type declarations. For an array, you needed to tell Basic how much space to allocate for the array. Some of the more used languages at that time (e.g. fortran) used a"Dimension" keyword for this and Basic similarly used a shorter DIM statement. Being that the designers of VB were implementing a version of Basic and they did need a type declaration, I would guess they decided to use the closest thing available: A DIM statement.