Wednesday, February 25, 2009

Naming a verriable is very important there are a few rules you must know.
1.The name must begin with a letter oran underscore.
2.The name must contain only letters,numbers, and the underscore charcater. Nopuncuation.
3.Manixum Characters allowed is 16383 but 32 is the recommended amount.
4.Cannont be a reserved word such as print.

Declaring a Variable you must makea declaratiion statement.
Dim itemPrice As Decimal, This declares two decimal variables named itemPrice and discount; the variabls are automatically initalized to

Assign A Variableis
Dim SmallOreder As Interger
SmallAmount = 500
^assigns the integer 500 to an integer variable named SmallOrder.

Dim carprice as Double
declares adouble variable named carprice; the varible is automatilly intialized to 0


Dim price as decimal

No comments: