<variable holding integer> = Int(<value that needs to be cast>)
'examples MsgBox(Int("001")) 'produces 1 MsgBox(Int(12.1)) 'produces 12
<variable holding integer> = Int(<value that needs to be cast>)
'examples MsgBox(Int("001")) 'produces 1 MsgBox(Int(12.1)) 'produces 12
Const <constant's name> = <constant's value>
'examples Public Const wagePerHour = 11.85 Private Const maxGuestCapacity = 2000 Const daysInYear = 365
Option Explicit ‘at the top of your modules
There are two categories of data types: numeric and non-numeric.
Numeric types
Non-numeric types
'to declare procedure variables Dim <variable name> As <variable type> ‘to declare procedure variables that retains value Static <variable name> As <variable type> ‘module variable Private <variable name> As <variable type> ‘global variable Public <variable name> As <variable type>