Declares and allocates storage space for one or more variables.
i.e. Dim A1() As Integer = {0, 1, 2, 3}
difference between command and statement
While--wend statement is used to execute a loop until a given condition is true.if the condition is false the loop ends and the program continous to the line following eend.
Dim aInt as Integer = 5 Dim aStr As String = String.Empty aStr = System.Convert.ToString(aInt)
Dim average as doubleDim numberA as integer = 23Dim numberB as integer =2Dim numberC as integer = 27 'continue until you have enough numbersaverage = numberA + numberB + numberC '...average = average / 3 ' replace 3 with the amount of numbers used.
In a declarative statement, you initialize the object. But in an imperative statement, you use a preexisting statement and use it.
Dim x as integer = 7
dim value1 as integer dim value2[3] as integer
dim a input a
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.
declaration of variable is dim a as integer
difference between command and statement
Dim i as double = CDbl("12")
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
in BASIC, GOSUB and the RETURN statement allows the use of subrouteens.
Dim intNumber As Integer
supports the basic values shared by Americans?
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